Class ZoneHostReplicator
Client for glued contract Azos.Sky.Contracts.IZoneHostReplicator 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
ZoneHostReplicator
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 ZoneHostReplicator : ClientEndPoint, IZoneHostReplicatorClient, ISkyServiceClient, IDisposable, IZoneHostReplicator, ISkyService
Constructors
ZoneHostReplicator(IGlue, Node, Binding)
Declaration
public ZoneHostReplicator(IGlue glue, Node node, Binding binding = null)
Parameters
ZoneHostReplicator(IGlue, String, Binding)
Declaration
public ZoneHostReplicator(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_GetDynamicHostInfo(DynamicHostID)
Asynchronous invoker for 'Azos.Sky.Contracts.IZoneHostReplicator.GetDynamicHostInfo'.
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_GetDynamicHostInfo(DynamicHostID hid)
Parameters
Returns
Async_PostDynamicHostInfo(DynamicHostID, DateTime, String, Int32)
Asynchronous invoker for 'Azos.Sky.Contracts.IZoneHostReplicator.PostDynamicHostInfo'.
This is a one-way call per contract specification, meaning - the server sends no acknowledgement of this call receipt and
there is no result that server could return back to the caller.
CallSlot is returned that can be queried for CallStatus, ResponseMsg.
Declaration
public CallSlot Async_PostDynamicHostInfo(DynamicHostID id, DateTime stamp, string owner, int votes)
Parameters
Type |
Name |
Description |
DynamicHostID |
id |
|
System.DateTime |
stamp |
|
System.String |
owner |
|
System.Int32 |
votes |
|
Returns
Async_PostHostInfo(HostInfo, Nullable<DynamicHostID>)
Asynchronous invoker for 'Azos.Sky.Contracts.IZoneHostReplicator.PostHostInfo'.
This is a one-way call per contract specification, meaning - the server sends no acknowledgement of this call receipt and
there is no result that server could return back to the caller.
CallSlot is returned that can be queried for CallStatus, ResponseMsg.
Declaration
public CallSlot Async_PostHostInfo(HostInfo host, DynamicHostID? hid)
Parameters
Returns
GetDynamicHostInfo(DynamicHostID)
Synchronous invoker for 'Azos.Sky.Contracts.IZoneHostReplicator.GetDynamicHostInfo'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Contracts.@DynamicHostInfo' 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 DynamicHostInfo GetDynamicHostInfo(DynamicHostID hid)
Parameters
Returns
PostDynamicHostInfo(DynamicHostID, DateTime, String, Int32)
Synchronous invoker for 'Azos.Sky.Contracts.IZoneHostReplicator.PostDynamicHostInfo'.
This is a one-way call per contract specification, meaning - the server sends no acknowledgement of this call receipt and
there is no result that server could return back to the caller.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
Declaration
public void PostDynamicHostInfo(DynamicHostID id, DateTime stamp, string owner, int votes)
Parameters
Type |
Name |
Description |
DynamicHostID |
id |
|
System.DateTime |
stamp |
|
System.String |
owner |
|
System.Int32 |
votes |
|
PostHostInfo(HostInfo, Nullable<DynamicHostID>)
Synchronous invoker for 'Azos.Sky.Contracts.IZoneHostReplicator.PostHostInfo'.
This is a one-way call per contract specification, meaning - the server sends no acknowledgement of this call receipt and
there is no result that server could return back to the caller.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
Declaration
public void PostHostInfo(HostInfo host, DynamicHostID? hid)
Parameters
Implements
System.IDisposable
Extension Methods