Class EventHubBroadcastService
Bridges gateway event-bus messages onto the SignalR callbacks consumed by clients.
public sealed class EventHubBroadcastService : IHostedService, IDisposable
- Inheritance
-
EventHubBroadcastService
- Implements
- Inherited Members
Constructors
EventHubBroadcastService(IEventBus, IHubContext<EventHub>)
Bridges gateway event-bus messages onto the SignalR callbacks consumed by clients.
public EventHubBroadcastService(IEventBus eventBus, IHubContext<EventHub> hubContext)
Parameters
eventBusIEventBushubContextIHubContext<EventHub>
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
StartAsync(CancellationToken)
Triggered when the application host is ready to start the service.
public Task StartAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenIndicates that the start process has been aborted.
Returns
StopAsync(CancellationToken)
Triggered when the application host is performing a graceful shutdown.
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenIndicates that the shutdown process should no longer be graceful.