Exemplo n.º 1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="packet"></param>
 /// <param name="status"></param>
 /// <exception cref="ArgumentNullException">packet is null</exception>
 public SendCallbackEventArgs(Packet packet, SendCallbackStatus status)
 {
     if (packet == null)
     {
         throw new ArgumentNullException("packet");
     }
     this.Packet = packet;
     this.Status = status;
 }
 /// <summary>
 /// new
 /// </summary>
 /// <param name="packet"></param>
 /// <param name="status"></param>
 /// <exception cref="ArgumentNullException">packet is null</exception>
 public SendCallbackEventArgs(Packet packet, SendCallbackStatus status)
 {
     if (packet == null) throw new ArgumentNullException("packet");
     this.Packet = packet;
     this.Status = status;
 }