Пример #1
0
 //Constructors
 public SessionStartedEventArgs(TcpSession session) : base(session?.ServerEndPoint, session?.SessionEndPoint)
     => Session = session ?? throw new ArgumentNullException(nameof(session));
 //Constructors
 public SessionDataTransferredEventArgs(TcpSession session, byte[] data) : base(data)
     => Session = session ?? throw new ArgumentNullException(nameof(session));