Ejemplo n.º 1
0
 public bool TryGetConnection(out HttpConnection connection)
 {
     return(_weakReference.TryGetTarget(out connection));
 }
Ejemplo n.º 2
0
 public HttpConnectionReference(HttpConnection connection)
 {
     _weakReference = new WeakReference <HttpConnection>(connection);
     ConnectionId   = connection.ConnectionId;
 }