Class ProjectionInitializationService
- Namespace
- Opossum.Projections
- Assembly
- Opossum.dll
Background service that initializes projections on startup
public sealed class ProjectionInitializationService : IHostedService
- Inheritance
-
ProjectionInitializationService
- Implements
- Inherited Members
Constructors
ProjectionInitializationService(IProjectionManager, IServiceProvider, ProjectionOptions)
public ProjectionInitializationService(IProjectionManager projectionManager, IServiceProvider serviceProvider, ProjectionOptions options)
Parameters
projectionManagerIProjectionManagerserviceProviderIServiceProvideroptionsProjectionOptions
Methods
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.