public ClientWebSocket() { if (NetEventSource.IsEnabled) { NetEventSource.Enter(this); } WebSocketHandle.CheckPlatformSupport(); _state = (int)InternalState.Created; _options = new ClientWebSocketOptions(); if (NetEventSource.IsEnabled) { NetEventSource.Exit(this); } }
public ClientWebSocket() { if (NetEventSource.Log.IsEnabled()) { NetEventSource.Enter(NetEventSource.ComponentType.WebSocket, this, ".ctor", null); } WebSocketHandle.CheckPlatformSupport(); _state = (int)InternalState.Created; _options = new ClientWebSocketOptions(); if (NetEventSource.Log.IsEnabled()) { NetEventSource.Exit(NetEventSource.ComponentType.WebSocket, this, ".ctor", null); } }
public ClientWebSocket() { if (Logging.On) { Logging.Enter(Logging.WebSockets, this, ".ctor", null); } WebSocketHandle.CheckPlatformSupport(); _state = (int)InternalState.Created; _options = new ClientWebSocketOptions(); _cts = new CancellationTokenSource(); if (Logging.On) { Logging.Exit(Logging.WebSockets, this, ".ctor", null); } }