Class StartPlugins
- Namespace
- DuetControlServer.Commands
- Assembly
- DuetControlServer.dll
Implementation of the StartPlugins command
public sealed class StartPlugins : StartPlugins
- Inheritance
-
StartPlugins
- Inherited Members
Constructors
StartPlugins(CodeFactory, CommandFactory, EventLogger, FilePathResolver, ObjectModel, IHostApplicationLifetime, ILogger<StartPlugins>, IOptions<Settings>)
Implementation of the StartPlugins command
public StartPlugins(CodeFactory codeFactory, CommandFactory commandFactory, EventLogger eventLogger, FilePathResolver filePathResolver, ObjectModel model, IHostApplicationLifetime lifetime, ILogger<StartPlugins> logger, IOptions<Settings> settings)
Parameters
codeFactoryCodeFactoryCode factory
commandFactoryCommandFactoryCommand factory
eventLoggerEventLoggerfilePathResolverFilePathResolverFile path resolver
modelObjectModelObject model
lifetimeIHostApplicationLifetimeHost application lifetime
loggerILogger<StartPlugins>Logger
settingsIOptions<Settings>Settings
Methods
ExecuteAsync(CancellationToken)
Start all the plugins
public override Task ExecuteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
- Task
Asynchronous task