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
Manager(IServiceProvider)
Class used to manage access to channel processors
public Manager(IServiceProvider provider)
Parameters
providerIServiceProviderService provider to use for creating channel processors
Properties
this[CodeChannel]
Index operator for easy access via a CodeChannel value
public Processor this[CodeChannel channel] { get; set; }
Parameters
channelCodeChannelChannel to retrieve information about
Property Value
- Processor
Information about the code channel
Methods
HandleReply(MessageTypeFlags, string)
Try to process a code reply
public bool HandleReply(MessageTypeFlags flags, string reply)
Parameters
flagsMessageTypeFlagsMessage type flags
replystringMessage content
Returns
- bool
Whether the reply could be handled
IsWaitingForAcknowledgment(CodeChannel)
Check if a code channel is waiting for acknowledgement
public bool IsWaitingForAcknowledgment(CodeChannel channel)
Parameters
channelCodeChannelChannel to query
Returns
- bool
Whether the channel is awaiting acknowledgement
PrintDiagnosticsAsync(StringBuilder, CancellationToken)
Print diagnostics of this class
public ValueTask PrintDiagnosticsAsync(StringBuilder builder, CancellationToken cancellationToken)
Parameters
builderStringBuildercancellationTokenCancellationToken
Returns
Exceptions
Spin()
Process requests in the G-code channel processors
public void Spin()