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