コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }