Class ZoneHostRegistry
Client for glued contract Azos.Sky.Contracts.IZoneHostRegistry 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
ZoneHostRegistry
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 ZoneHostRegistry : ClientEndPoint, IZoneHostRegistryClient, ISkyServiceClient, IDisposable, IZoneHostRegistry, ISkyService
Constructors
ZoneHostRegistry(IGlue, Node, Binding)
Declaration
public ZoneHostRegistry(IGlue glue, Node node, Binding binding = null)
Parameters
ZoneHostRegistry(IGlue, String, Binding)
Declaration
public ZoneHostRegistry(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_GetSubordinateHost(String)
Asynchronous invoker for 'Azos.Sky.Contracts.IZoneHostRegistry.GetSubordinateHost'.
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_GetSubordinateHost(string hostName)
Parameters
Type |
Name |
Description |
System.String |
hostName |
|
Returns
Async_GetSubordinateHosts(String)
Asynchronous invoker for 'Azos.Sky.Contracts.IZoneHostRegistry.GetSubordinateHosts'.
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_GetSubordinateHosts(string hostNameSearchPattern)
Parameters
Type |
Name |
Description |
System.String |
hostNameSearchPattern |
|
Returns
Async_RegisterSubordinateHost(HostInfo, Nullable<DynamicHostID>)
Asynchronous invoker for 'Azos.Sky.Contracts.IZoneHostRegistry.RegisterSubordinateHost'.
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_RegisterSubordinateHost(HostInfo host, DynamicHostID? hid)
Parameters
Returns
Async_Spawn(String, String)
Asynchronous invoker for 'Azos.Sky.Contracts.IZoneHostRegistry.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(string hostPath, string id)
Parameters
Type |
Name |
Description |
System.String |
hostPath |
|
System.String |
id |
|
Returns
GetSubordinateHost(String)
Synchronous invoker for 'Azos.Sky.Contracts.IZoneHostRegistry.GetSubordinateHost'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Contracts.@HostInfo' 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 HostInfo GetSubordinateHost(string hostName)
Parameters
Type |
Name |
Description |
System.String |
hostName |
|
Returns
GetSubordinateHosts(String)
Declaration
public IEnumerable<HostInfo> GetSubordinateHosts(string hostNameSearchPattern)
Parameters
Type |
Name |
Description |
System.String |
hostNameSearchPattern |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<HostInfo> |
|
RegisterSubordinateHost(HostInfo, Nullable<DynamicHostID>)
Synchronous invoker for 'Azos.Sky.Contracts.IZoneHostRegistry.RegisterSubordinateHost'.
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 RegisterSubordinateHost(HostInfo host, DynamicHostID? hid)
Parameters
Spawn(String, String)
Synchronous invoker for 'Azos.Sky.Contracts.IZoneHostRegistry.Spawn'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Contracts.@DynamicHostID' 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 DynamicHostID Spawn(string hostPath, string id)
Parameters
Type |
Name |
Description |
System.String |
hostPath |
|
System.String |
id |
|
Returns
Implements
System.IDisposable
Extension Methods