Beispiel #1
0
        // Token: 0x06000A91 RID: 2705 RVA: 0x00045794 File Offset: 0x00043994
        private void RpcCompleted(IAsyncResult result)
        {
            MwiDeliveryException error = null;

            ExRpcMwiTarget.MwiRpcAsyncState mwiRpcAsyncState = null;
            try
            {
                mwiRpcAsyncState = (ExRpcMwiTarget.MwiRpcAsyncState)result.AsyncState;
                mwiRpcAsyncState.RpcDelegate.EndInvoke(result);
            }
            catch (RpcException ex)
            {
                error = new MwiTargetException(base.Name, ex.ErrorCode, ex.Message, ex);
            }
            base.UpdatePerformanceCounters(mwiRpcAsyncState.Message, error);
            mwiRpcAsyncState.Message.CompletionCallback(mwiRpcAsyncState.Message, error);
        }
Beispiel #2
0
 // Token: 0x06000A8F RID: 2703 RVA: 0x00045560 File Offset: 0x00043760
 public override void SendMessageAsync(MwiMessage message)
 {
     base.SendMessageAsync(message);
     ExRpcMwiTarget.MwiRpcAsyncState mwiRpcAsyncState = new ExRpcMwiTarget.MwiRpcAsyncState(message, new ExRpcMwiTarget.DoRpcDelegate(this.DoRpc));
     mwiRpcAsyncState.RpcDelegate.BeginInvoke(message, new AsyncCallback(this.RpcCompleted), mwiRpcAsyncState);
 }