Table of Contents

Class Manager

Namespace
DuetControlServer.Link.Channel
Assembly
DuetControlServer.dll

Class used to manage access to channel processors

[DiagnosticsPriority(-6)]
public class Manager : IAsyncDiagnostics, IEnumerable<Processor>, IEnumerable
Inheritance
Manager
Implements
Inherited Members

Constructors

Class used to manage access to channel processors

public Manager(IServiceProvider provider)

Parameters

provider IServiceProvider

Service provider to use for creating channel processors

Properties

Index operator for easy access via a CodeChannel value

public Processor this[CodeChannel channel] { get; set; }

Parameters

channel CodeChannel

Channel to retrieve information about

Property Value

Processor

Information about the code channel

Methods

Try to process a code reply

public bool HandleReply(MessageTypeFlags flags, string reply)

Parameters

flags MessageTypeFlags

Message type flags

reply string

Message content

Returns

bool

Whether the reply could be handled

Check if a code channel is waiting for acknowledgement

public bool IsWaitingForAcknowledgment(CodeChannel channel)

Parameters

channel CodeChannel

Channel to query

Returns

bool

Whether the channel is awaiting acknowledgement

Print diagnostics of this class

public ValueTask PrintDiagnosticsAsync(StringBuilder builder, CancellationToken cancellationToken)

Parameters

builder StringBuilder
cancellationToken CancellationToken

Returns

ValueTask

Exceptions

NotImplementedException

Process requests in the G-code channel processors

public void Spin()