Table of Contents

Class StartPlugin

Namespace
DuetControlServer.Commands
Assembly
DuetControlServer.dll

Implementation of the StartPlugin command

public sealed class StartPlugin : StartPlugin
Inheritance
StartPlugin
Inherited Members

Constructors

StartPlugin(CommandFactory, ObjectModel, IOptions<Settings>)

Implementation of the StartPlugin command

public StartPlugin(CommandFactory commandFactory, ObjectModel model, IOptions<Settings> settings)

Parameters

commandFactory CommandFactory

Command factory

model ObjectModel

Object model

settings IOptions<Settings>

Settings

Properties

IsAnyStarting

True while at least one StartPlugin command is currently executing

public static bool IsAnyStarting { get; }

Property Value

bool

Methods

ExecuteAsync(CancellationToken)

Start a plugin

public override Task ExecuteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional cancellation token

Returns

Task

Asynchronous task

Exceptions

ArgumentException

Plugin is invalid