private InnerConnectionResult(ClientSideConnection connection, bool newConnectionCreated)
 {
     Debug.Assert(connection != null);
     Connection           = connection;
     SocketError          = null;
     ShutdownRequest      = null;
     NewConnectionCreated = newConnectionCreated;
 }
Beispiel #2
0
 public ConnectedEventArgs(ClientSideConnection connection)
 {
     Connection = connection;
 }
 public static InnerConnectionResult FromNewConnection(ClientSideConnection connection)
 {
     return(new InnerConnectionResult(connection, newConnectionCreated: true));
 }
 public static InnerConnectionResult FromExistingConnection(ClientSideConnection connection)
 {
     return(new InnerConnectionResult(connection, newConnectionCreated: false));
 }