Table of Contents

Class InstallPlugin

Namespace
DuetControlServer.Commands
Assembly
DuetControlServer.dll

Implementation of the InstallPlugin command

public sealed class InstallPlugin : InstallPlugin
Inheritance
InstallPlugin
Inherited Members

Constructors

InstallPlugin(CommandFactory, ObjectModel, IOptions<Settings>)

Implementation of the InstallPlugin command

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

Parameters

commandFactory CommandFactory

Command factory

model ObjectModel

Object model

settings IOptions<Settings>

Settings

Properties

Upgrade

Internal flag to indicate that custom plugin files should not be purged

public bool Upgrade { get; set; }

Property Value

bool

Methods

ExecuteAsync(CancellationToken)

Install or upgrade a plugin

public override Task ExecuteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional cancellation token

Returns

Task

Asynchronous task

Exceptions

ArgumentException

Plugin is incompatible