Class PluginLifecycleHostedService
Loads enabled plugins at host startup.
public sealed class PluginLifecycleHostedService : IHostedService
- Inheritance
-
PluginLifecycleHostedService
- Implements
- Inherited Members
Constructors
PluginLifecycleHostedService(IPluginLifecycleManager, ILogger<PluginLifecycleHostedService>)
public PluginLifecycleHostedService(IPluginLifecycleManager manager, ILogger<PluginLifecycleHostedService> logger)
Parameters
managerIPluginLifecycleManagerloggerILogger<PluginLifecycleHostedService>
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.