Interface IProcessor
- Namespace
- DuetControlServer.IPC.Processors
- Assembly
- DuetControlServer.dll
Interface for connection interpreters
public interface IProcessor
Properties
Connection
Connection to the IPC client served by this processor
Connection Connection { get; }
Property Value
SupportedCommands
List of supported command types
public static Type[] SupportedCommands { get; }
Property Value
- Type[]
Methods
ProcessAsync(CancellationToken)
Worker method for a given connection. Once this task exits the connection is terminated.
Task ProcessAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token to cancel the worker
Returns
- Task
Task that represents the worker lifecycle
Exceptions
- NotImplementedException
Thrown if this method is not overridden