OnIoException() private method

private OnIoException ( Exception exception ) : void
exception System.Exception
return void
Exemplo n.º 1
0
 async Task StartAsync(Connection connection)
 {
     try
     {
         await this.PumpAsync(connection.OnHeader, connection.OnFrame);
     }
     catch (Exception exception)
     {
         connection.OnIoException(exception);
     }
 }
Exemplo n.º 2
0
 async Task StartAsync(Connection connection)
 {
     try
     {
         await this.PumpAsync(connection.MaxFrameSize, connection.OnHeader, connection.OnFrame).ConfigureAwait(false);
     }
     catch (Exception exception)
     {
         connection.OnIoException(exception);
     }
 }
Exemplo n.º 3
0
        async Task StartAsync(Connection connection)
        {
            try
            {
                await this.PumpAsync(connection.OnHeader, connection.OnFrame);
            }
            catch (Exception exception)
            {
                connection.OnIoException(exception);
            }

        }
Exemplo n.º 4
0
        void OnWebSocketClosed(IWebSocket sender, WebSocketClosedEventArgs args)
        {
            if (this.webSocket != null)
            {
                this.webSocket.Dispose();
            }

            Connection temp = this.connection;

            if (temp != null)
            {
                temp.OnIoException(new ObjectDisposedException(string.Format("WebSocket closed. code={0} reason={1}", args.Code, args.Reason)));
            }
        }