예제 #1
0
 private void packetSendFailed(OpCodeInvokerArgs e)
 {
     PacketSendFailed(e.Result);
     if (OnError != null)
     {
         OnError(e);
     }
 }
예제 #2
0
 private void DataSent(OpCodeInvokerArgs e)
 {
     if (e.Result.Value == ResultEnum.OK)
     {
         packetSent(e);
     }
     else
     {
         packetSendFailed(e);
     }
 }
예제 #3
0
        protected void Finished(Result finResult)
        {
            var e = new OpCodeInvokerArgs {
                OpCode = this, Result = finResult
            };

            operationMRE.Set();
            if (OnFinished != null)
            {
                OnFinished(e);
            }

            result.AsyncState = finResult;
            result.Exception  = finResult.Exception;
            result.OpCodeArgs = e;

            if (callback != null)
            {
                callback(result);
            }

            result.IsCompleted = true;
        }
예제 #4
0
 private void packetSent(OpCodeInvokerArgs e)
 {
     PacketSent(e.Result);
 }
예제 #5
0
 public void OnOpCodeAcknowledged(OpCodeInvokerArgs args)
 {
     lock (invokeOpCodeLock)
         AckReceivedProceedWithQueue = true;
 }
예제 #6
0
 void parentOpCode_OnAcked(OpCodeInvokerArgs e)
 {
     onOpCodeWorkerAckedMRE.Set();
 }