CheckPlatformSupport() public static method

public static CheckPlatformSupport ( ) : void
return void
コード例 #1
0
ファイル: ClientWebSocket.cs プロジェクト: rsumner31/corefx2
        public ClientWebSocket()
        {
            if (NetEventSource.IsEnabled)
            {
                NetEventSource.Enter(this);
            }
            WebSocketHandle.CheckPlatformSupport();

            _state   = (int)InternalState.Created;
            _options = new ClientWebSocketOptions();

            if (NetEventSource.IsEnabled)
            {
                NetEventSource.Exit(this);
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
            }
        }