KestrunContext.BroadcastEvent method

Synchronous wrapper for BroadcastEventAsync.

public bool BroadcastEvent(string eventName, object? data, 
    CancellationToken cancellationToken = default)
parameter description
eventName The event name (e.g., Information, Warning, Error, Debug, Verbose).
data The event data to broadcast.
cancellationToken Optional: Cancellation token.

Return Value

True if the event was broadcast successfully; otherwise, false.

See Also