Class RemoteTerminal
Client for glued contract Azos.Sky.Contracts.IRemoteTerminal 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
RemoteTerminal
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 RemoteTerminal : ClientEndPoint, IRemoteTerminalClient, ISkyServiceClient, IDisposable, IRemoteTerminal, ISkyService
Constructors
RemoteTerminal(IGlue, Node, Binding)
Declaration
public RemoteTerminal(IGlue glue, Node node, Binding binding = null)
Parameters
RemoteTerminal(IGlue, String, Binding)
Declaration
public RemoteTerminal(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_Connect(String)
Asynchronous invoker for 'Azos.Sky.Contracts.IRemoteTerminal.Connect'.
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_Connect(string who)
Parameters
Type |
Name |
Description |
System.String |
who |
|
Returns
Async_Disconnect()
Asynchronous invoker for 'Azos.Sky.Contracts.IRemoteTerminal.Disconnect'.
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_Disconnect()
Returns
Async_Execute(String)
Asynchronous invoker for 'Azos.Sky.Contracts.IRemoteTerminal.Execute'.
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_Execute(string command)
Parameters
Type |
Name |
Description |
System.String |
command |
|
Returns
Connect(String)
Synchronous invoker for 'Azos.Sky.Contracts.IRemoteTerminal.Connect'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Contracts.@RemoteTerminalInfo' 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 RemoteTerminalInfo Connect(string who)
Parameters
Type |
Name |
Description |
System.String |
who |
|
Returns
Disconnect()
Synchronous invoker for 'Azos.Sky.Contracts.IRemoteTerminal.Disconnect'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@System.@String' 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 string Disconnect()
Returns
Type |
Description |
System.String |
|
Execute(String)
Synchronous invoker for 'Azos.Sky.Contracts.IRemoteTerminal.Execute'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@System.@String' 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 string Execute(string command)
Parameters
Type |
Name |
Description |
System.String |
command |
|
Returns
Type |
Description |
System.String |
|
Implements
System.IDisposable
Extension Methods