Class ProcessController
Client for glued contract Azos.Sky.Contracts.IProcessController server.
Each contract method has synchronous and asynchronous versions, the later denoted by 'Async_' prefix.
May inject client-level inspectors here like so:
client.MsgInspectors.Register( new YOUR_CLIENT_INSPECTOR_TYPE());
Inheritance
System.Object
ProcessController
Implements
System.IDisposable
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)
Assembly: Azos.Sky.dll
Syntax
public class ProcessController : ClientEndPoint, IProcessControllerClient, ISkyServiceClient, IDisposable, IProcessController, ISkyService
Constructors
ProcessController(IGlue, Node, Binding)
Declaration
public ProcessController(IGlue glue, Node node, Binding binding = null)
Parameters
ProcessController(IGlue, String, Binding)
Declaration
public ProcessController(IGlue glue, string node, Binding binding = null)
Parameters
Type |
Name |
Description |
IGlue |
glue |
|
System.String |
node |
|
Binding |
binding |
|
Properties
Contract
Declaration
public override Type Contract { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
Methods
Async_Dispatch(SignalFrame)
Asynchronous invoker for 'Azos.Sky.Contracts.IProcessController.Dispatch'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
Declaration
public CallSlot Async_Dispatch(SignalFrame signal)
Parameters
Returns
Async_Get(PID)
Asynchronous invoker for 'Azos.Sky.Contracts.IProcessController.Get'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
Declaration
public CallSlot Async_Get(PID pid)
Parameters
Type |
Name |
Description |
PID |
pid |
|
Returns
Async_GetDescriptor(PID)
Asynchronous invoker for 'Azos.Sky.Contracts.IProcessController.GetDescriptor'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
Declaration
public CallSlot Async_GetDescriptor(PID pid)
Parameters
Type |
Name |
Description |
PID |
pid |
|
Returns
Async_List(Int32)
Asynchronous invoker for 'Azos.Sky.Contracts.IProcessController.List'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
Declaration
public CallSlot Async_List(int processorID)
Parameters
Type |
Name |
Description |
System.Int32 |
processorID |
|
Returns
Async_Spawn(ProcessFrame)
Asynchronous invoker for 'Azos.Sky.Contracts.IProcessController.Spawn'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
Declaration
public CallSlot Async_Spawn(ProcessFrame frame)
Parameters
Returns
Dispatch(SignalFrame)
Synchronous invoker for 'Azos.Sky.Contracts.IProcessController.Dispatch'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Workers.@SignalFrame' or WrappedExceptionData instance.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
RemoteException is thrown if the server generated exception during method execution.
Declaration
public SignalFrame Dispatch(SignalFrame signal)
Parameters
Returns
Get(PID)
Synchronous invoker for 'Azos.Sky.Contracts.IProcessController.Get'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Workers.@ProcessFrame' or WrappedExceptionData instance.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
RemoteException is thrown if the server generated exception during method execution.
Declaration
public ProcessFrame Get(PID pid)
Parameters
Type |
Name |
Description |
PID |
pid |
|
Returns
GetDescriptor(PID)
Synchronous invoker for 'Azos.Sky.Contracts.IProcessController.GetDescriptor'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Workers.@ProcessDescriptor' or WrappedExceptionData instance.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
RemoteException is thrown if the server generated exception during method execution.
Declaration
public ProcessDescriptor GetDescriptor(PID pid)
Parameters
Type |
Name |
Description |
PID |
pid |
|
Returns
List(Int32)
Declaration
public IEnumerable<ProcessDescriptor> List(int processorID)
Parameters
Type |
Name |
Description |
System.Int32 |
processorID |
|
Returns
Spawn(ProcessFrame)
Synchronous invoker for 'Azos.Sky.Contracts.IProcessController.Spawn'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
RemoteException is thrown if the server generated exception during method execution.
Declaration
public void Spawn(ProcessFrame frame)
Parameters
Implements
System.IDisposable
Extension Methods