Table of Contents

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

projectionManager IProjectionManager
serviceProvider IServiceProvider
options ProjectionOptions

Methods

StartAsync(CancellationToken)

Triggered when the application host is ready to start the service.

public Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Indicates that the start process has been aborted.

Returns

Task

A Task that represents the asynchronous Start operation.

StopAsync(CancellationToken)

Triggered when the application host is performing a graceful shutdown.

public Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Indicates that the shutdown process should no longer be graceful.

Returns

Task

A Task that represents the asynchronous Stop operation.