///<summary> /// 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. ///</summary> public void @PostDynamicHostInfo(@Azos.@Sky.@Contracts.@DynamicHostID @id, @System.@DateTime @stamp, @System.@String @owner, @System.@Int32 @votes) { var call = Async_PostDynamicHostInfo(@id, @stamp, @owner, @votes); if (call.CallStatus != CallStatus.Dispatched) { throw new ClientCallException(call.CallStatus, "Call failed: 'ZoneHostReplicator.PostDynamicHostInfo'"); } }
///<summary> /// 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. ///</summary> public CallSlot Async_PostDynamicHostInfo(@Azos.@Sky.@Contracts.@DynamicHostID @id, @System.@DateTime @stamp, @System.@String @owner, @System.@Int32 @votes) { var request = new @Azos.@Sky.@Contracts.@RequestMsg_IZoneHostReplicator_PostDynamicHostInfo(s_ts_CONTRACT, @s_ms_PostDynamicHostInfo_0, true, RemoteInstance) { MethodArg_0_id = @id, MethodArg_1_stamp = @stamp, MethodArg_2_owner = @owner, MethodArg_3_votes = @votes, }; return(DispatchCall(request)); }
///<summary> /// 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. ///</summary> public CallSlot Async_GetDynamicHostInfo(@Azos.@Sky.@Contracts.@DynamicHostID @hid) { var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_GetDynamicHostInfo_1, false, RemoteInstance, new object[] { @hid }); return(DispatchCall(request)); }
///<summary> /// 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. ///</summary> public @Azos.@Sky.@Contracts.@DynamicHostInfo @GetDynamicHostInfo(@Azos.@Sky.@Contracts.@DynamicHostID @hid) { var call = Async_GetDynamicHostInfo(@hid); return(call.GetValue <@Azos.@Sky.@Contracts.@DynamicHostInfo>()); }