/// <summary> /// new /// </summary> /// <param name="buffer"></param> /// <param name="processCallback"></param> /// <exception cref="ArgumentNullException">processCallback is null</exception> public MessageReceivedEventArgs(ArraySegment <byte> buffer, MessageProcessHandler processCallback) { if (processCallback == null) { throw new ArgumentNullException("processCallback"); } this.Buffer = buffer; this._processCallback = processCallback; }
/// <summary> /// new /// </summary> /// <param name="buffer"></param> /// <param name="processCallback"></param> /// <exception cref="ArgumentNullException">processCallback is null</exception> public MessageReceivedEventArgs(ArraySegment<byte> buffer, MessageProcessHandler processCallback) { if (processCallback == null) throw new ArgumentNullException("processCallback"); this.Buffer = buffer; this._processCallback = processCallback; }