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