Esempio n. 1
0
        ///<summary>
        /// Synchronous invoker for  'Agni.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(@Agni.@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'");
            }
        }
Esempio n. 2
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.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(@Agni.@Contracts.@DynamicHostID @id, @System.@DateTime @stamp, @System.@String @owner, @System.@Int32 @votes)
        {
            var request = new @Agni.@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));
        }
Esempio n. 3
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.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(@Agni.@Contracts.@DynamicHostID @hid)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_GetDynamicHostInfo_1, false, RemoteInstance, new object[] { @hid });

            return(DispatchCall(request));
        }
Esempio n. 4
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IZoneHostReplicator.GetDynamicHostInfo'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Agni.@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 @Agni.@Contracts.@DynamicHostInfo @GetDynamicHostInfo(@Agni.@Contracts.@DynamicHostID @hid)
        {
            var call = Async_GetDynamicHostInfo(@hid);

            return(call.GetValue <@Agni.@Contracts.@DynamicHostInfo>());
        }