Class StopPlugin
- Namespace
- DuetControlServer.Commands
- Assembly
- DuetControlServer.dll
Implementation of the StopPlugin command
public sealed class StopPlugin : StopPlugin
- Inheritance
-
StopPlugin
- Inherited Members
Constructors
StopPlugin(ObjectModel, IOptions<Settings>)
Implementation of the StopPlugin command
public StopPlugin(ObjectModel model, IOptions<Settings> settings)
Parameters
modelObjectModelObject model
settingsIOptions<Settings>Settings
Properties
StoppingAll
This is set to true if all the plugins are supposed to be stopped
[JsonIgnore]
public bool StoppingAll { get; set; }
Property Value
Methods
ExecuteAsync(CancellationToken)
Stop a plugin
public override Task ExecuteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenOptional cancellation token
Returns
- Task
Asynchronous task
Exceptions
- ArgumentException
Plugin is invalid