Class EventDistributorHostedService
- Namespace
- Oqtane.Infrastructure
- Assembly
- Oqtane.Server.dll
public class EventDistributorHostedService
- Inheritance
-
EventDistributorHostedService
Constructors
EventDistributorHostedService(IServiceProvider, ISyncManager, IMemoryCache, ILogger<EventDistributorHostedService>)
public EventDistributorHostedService(IServiceProvider serviceProvider, ISyncManager syncManager, IMemoryCache cache, ILogger<EventDistributorHostedService> filelogger)
Parameters
serviceProvider
IServiceProvidersyncManager
ISyncManagercache
IMemoryCachefilelogger
ILogger<EventDistributorHostedService>
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
cancellationToken
CancellationTokenIndicates 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
cancellationToken
CancellationTokenIndicates that the shutdown process should no longer be graceful.