protected ClientConnectorTestsBase(ClientConnector connector = null)
     : base(dummyServer: true)
 {
     Connector = connector ?? new ClientConnector(SocketType.Stream, ProtocolType.Tcp, new SocketAsyncEventArgs())
     {
         Address = Addr,
         Port = Port
     };
     Connector.Connected += OnConnected;
     Connector.Failed += OnFailed;
 }
예제 #2
0
 public ClientConnectorTests(ClientConnector connector)
     : base(connector)
 {
 }