コード例 #1
0
ファイル: WebMessageSystem.cs プロジェクト: saleyn/agni
        ///<summary>
        /// Asynchronous invoker for  'Agni.Contracts.IWebMessageSystem.UpdateMailboxMessagesStatus'.
        /// 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_UpdateMailboxMessagesStatus(@System.@Collections.@Generic.@IEnumerable <@Agni.@WebMessaging.@MailboxMsgID> @mids, @Agni.@WebMessaging.@MsgStatus @status, @System.@String @folders, @System.@String @adornments)
        {
            var request = new @Agni.@Contracts.@RequestMsg_IWebMessageSystem_UpdateMailboxMessagesStatus(s_ts_CONTRACT, @s_ms_UpdateMailboxMessagesStatus_3, true, RemoteInstance)
            {
                MethodArg_0_mids       = @mids,
                MethodArg_1_status     = @status,
                MethodArg_2_folders    = @folders,
                MethodArg_3_adornments = @adornments,
            };

            return(DispatchCall(request));
        }
コード例 #2
0
ファイル: WebMessageSystem.cs プロジェクト: saleyn/agni
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IWebMessageSystem.UpdateMailboxMessagesStatus'.
        /// 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 @UpdateMailboxMessagesStatus(@System.@Collections.@Generic.@IEnumerable <@Agni.@WebMessaging.@MailboxMsgID> @mids, @Agni.@WebMessaging.@MsgStatus @status, @System.@String @folders, @System.@String @adornments)
        {
            var call = Async_UpdateMailboxMessagesStatus(@mids, @status, @folders, @adornments);

            if (call.CallStatus != CallStatus.Dispatched)
            {
                throw new ClientCallException(call.CallStatus, "Call failed: 'WebMessageSystem.UpdateMailboxMessagesStatus'");
            }
        }