System.Net.WebSockets.WebSocketHandle.IsValid C# (CSharp) Метод

IsValid() публичный статический Метод

public static IsValid ( WebSocketHandle handle ) : bool
handle WebSocketHandle
Результат bool
        public static bool IsValid(WebSocketHandle handle) => handle != null;

Usage Example

Пример #1
0
 public override void Abort()
 {
     if ((InternalState)_state == InternalState.Disposed)
     {
         return;
     }
     if (WebSocketHandle.IsValid(_innerWebSocket))
     {
         _innerWebSocket.Abort();
     }
     Dispose();
 }
All Usage Examples Of System.Net.WebSockets.WebSocketHandle::IsValid