Class Manager
Class used to manage access to channel processors
Inheritance
System.Object
Manager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DuetControlServer.SPI.Channel
Assembly: DuetControlServer.dll
Syntax
public class Manager : IEnumerable<Processor>, IEnumerable
Constructors
Manager()
Constructor of the channel store
Declaration
public Manager()
Properties
Item[CodeChannel]
Index operator for easy access via a CodeChannel value
Declaration
public Processor this[CodeChannel channel] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
CodeChannel | channel | Channel to retrieve information about |
Property Value
Type | Description |
---|---|
Processor | Information about the code channel |
Methods
Diagnostics(StringBuilder)
Print diagnostics of this class
Declaration
public async Task Diagnostics(StringBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | builder | String builder |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Asynchronous task |
GetIdleChannel(CodeChannel)
Get a channel that is currently idle in order to process a priority code
Declaration
public async Task<CodeChannel> GetIdleChannel(CodeChannel preferredChannel)
Parameters
Type | Name | Description |
---|---|---|
CodeChannel | preferredChannel | Preferred code channel |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CodeChannel> | Idle code channel |
HandleReply(MessageTypeFlags, String)
Try to process a code reply
Declaration
public bool HandleReply(MessageTypeFlags flags, string reply)
Parameters
Type | Name | Description |
---|---|---|
MessageTypeFlags | flags | Message type flags |
System.String | reply | Message content |
Returns
Type | Description |
---|---|
System.Boolean | Whether the reply could be handled |
Run()
Process requests in the G-code channel processors
Declaration
public void Run()
Explicit Interface Implementations
IEnumerable<Processor>.GetEnumerator()
Implementation of the GetEnumerator method
Declaration
IEnumerator<Processor> IEnumerable<Processor>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Processor> | Enumerator |
IEnumerable.GetEnumerator()
Implementation of the GetEnumerator method
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | Enumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable