private void packetSendFailed(OpCodeInvokerArgs e) { PacketSendFailed(e.Result); if (OnError != null) { OnError(e); } }
private void DataSent(OpCodeInvokerArgs e) { if (e.Result.Value == ResultEnum.OK) { packetSent(e); } else { packetSendFailed(e); } }
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; }
private void packetSent(OpCodeInvokerArgs e) { PacketSent(e.Result); }
public void OnOpCodeAcknowledged(OpCodeInvokerArgs args) { lock (invokeOpCodeLock) AckReceivedProceedWithQueue = true; }
void parentOpCode_OnAcked(OpCodeInvokerArgs e) { onOpCodeWorkerAckedMRE.Set(); }