Ejemplo n.º 1
0
        ///<summary>
        /// Asynchronous invoker for  'Azos.Sky.Contracts.ILogReceiver.GetByID'.
        /// 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_GetByID(@System.@Guid @id, @System.@String @channel)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_GetByID_1, false, RemoteInstance, new object[] { @id, @channel });

            return(DispatchCall(request));
        }
Ejemplo n.º 2
0
        ///<summary>
        /// Synchronous invoker for  'Azos.Sky.Contracts.ILogReceiver.GetByID'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Azos@Log.@Message' 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.@Log.@Message @GetByID(@System.@Guid @id, @System.@String @channel)
        {
            var call = Async_GetByID(@id, @channel);

            return(call.GetValue <@Azos.@Log.@Message>());
        }