///<summary> /// Synchronous invoker for 'Azos.Sky.Contracts.IWebMessageSystem.SendMessage'. /// This is a two-way call per contract specification, meaning - the server sends the result back either /// returning '@Azos.@Sky.@Contracts.@MsgSendInfo[]' 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.@MsgSendInfo[] @SendMessage(@Azos.@Sky.@WebMessaging.@SkyWebMessage @msg) { var call = Async_SendMessage(@msg); return(call.GetValue <@Azos.@Sky.@Contracts.@MsgSendInfo[]>()); }
///<summary> /// Asynchronous invoker for 'Azos.Sky.Contracts.IWebMessageSystem.SendMessage'. /// 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_SendMessage(@Azos.@Sky.@WebMessaging.@SkyWebMessage @msg) { var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_SendMessage_0, false, RemoteInstance, new object[] { @msg }); return(DispatchCall(request)); }