Table of Contents

Class RemoveHttpEndpoint

Namespace
DuetControlServer.Commands
Assembly
DuetControlServer.dll

Implementation of the RemoveHttpEndpoint command

public sealed class RemoveHttpEndpoint : RemoveHttpEndpoint
Inheritance
RemoveHttpEndpoint
Inherited Members

Constructors

RemoveHttpEndpoint(ObjectModel, ILogger<RemoveHttpEndpoint>)

Implementation of the RemoveHttpEndpoint command

public RemoveHttpEndpoint(ObjectModel model, ILogger<RemoveHttpEndpoint> logger)

Parameters

model ObjectModel

Object model

logger ILogger<RemoveHttpEndpoint>

Logger instance

Methods

ExecuteAsync(CancellationToken)

Remove a third-party HTTP endpoint

public override Task<bool> ExecuteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<bool>

True if the endpoint could be removed