Esempio n. 1
0
        ///<summary>
        /// Asynchronous invoker for  'Azos.Sky.Contracts.IProcessController.Dispatch'.
        /// 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_Dispatch(@Azos.@Sky.@Workers.@SignalFrame @signal)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_Dispatch_1, false, RemoteInstance, new object[] { @signal });

            return(DispatchCall(request));
        }
Esempio n. 2
0
        ///<summary>
        /// Synchronous invoker for  'Azos.Sky.Contracts.IProcessController.Dispatch'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Azos.@Sky.@Workers.@SignalFrame' 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.@Workers.@SignalFrame @Dispatch(@Azos.@Sky.@Workers.@SignalFrame @signal)
        {
            var call = Async_Dispatch(@signal);

            return(call.GetValue <@Azos.@Sky.@Workers.@SignalFrame>());
        }