public virtual object Complete(ProtoState state) { var res = state.Complete(); OnResponse?.Invoke(this, state); AllDone.Reset(); return(res); }
private void Receive(ProtoState state) { try { state.WorkSocket.BeginReceive(state.Buffer, 0, Config.BufferSize, 0, ReceiveCallback, state); } catch (Exception e) { Abort(state, e); } }
public override object Complete(ProtoState state) { ConnectDone.Reset(); SendDone.Reset(); return(base.Complete(state)); }
public override void Abort(ProtoState state, Exception e) { ConnectDone.Reset(); SendDone.Reset(); base.Abort(state, e); }
public virtual void Abort(ProtoState state, Exception e) { state?.Abort(e); AllDone.Reset(); OnAbort?.Invoke(this, state, e); }