Пример #1
0
        public WebSocketHelper(SenparcWebSocketHubBase hub, CancellationToken cancellationToken)
        {
            WebSocket = hub;
#endif
            _cancellationToken = cancellationToken;
        }
Пример #2
0
        /// <summary>
        /// WebSocketHelper
        /// </summary>
        ///// <param name="webSocketContext"></param>
        /// <param name="cancellationToken"></param>
#if NET45
        public WebSocketHelper(System.Net.WebSockets.WebSocket socket, /*AspNetWebSocketContext webSocketContext,*/ CancellationToken cancellationToken)
        {
            WebSocket = socket;