C# Class Microsoft.AspNetCore.SignalR.WebSockets.WebSocketHandler

ファイルを表示 Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript Class Usage Examples

Private Properties

Property Type Description
GetWebSocketState WebSocketState
IsClosedOrClosedSent bool
IsFatalException bool
ProcessWebSocketRequestAsync Task
ProcessWebSocketRequestAsync Task

Public Methods

Method Description
CloseAsync ( ) : Task
OnClose ( ) : void
OnError ( ) : void
OnMessage ( byte message ) : void
OnMessage ( string message ) : void
OnOpen ( ) : void
SendAsync ( ArraySegment message, WebSocketMessageType messageType, bool endOfMessage = true ) : Task
SendAsync ( string message ) : Task

Protected Methods

Method Description
WebSocketHandler ( int maxIncomingMessageSize, ILogger logger ) : System

Private Methods

Method Description
GetWebSocketState ( WebSocket webSocket ) : WebSocketState
IsClosedOrClosedSent ( WebSocket webSocket ) : bool
IsFatalException ( Exception ex ) : bool
ProcessWebSocketRequestAsync ( WebSocket webSocket, CancellationToken disconnectToken ) : Task
ProcessWebSocketRequestAsync ( WebSocket webSocket, CancellationToken disconnectToken, Func messageRetriever, object state ) : Task

Method Details

CloseAsync() public method

public CloseAsync ( ) : Task
return Task

OnClose() public method

public OnClose ( ) : void
return void

OnError() public method

public OnError ( ) : void
return void

OnMessage() public method

public OnMessage ( byte message ) : void
message byte
return void

OnMessage() public method

public OnMessage ( string message ) : void
message string
return void

OnOpen() public method

public OnOpen ( ) : void
return void

SendAsync() public method

public SendAsync ( ArraySegment message, WebSocketMessageType messageType, bool endOfMessage = true ) : Task
message ArraySegment
messageType WebSocketMessageType
endOfMessage bool
return Task

SendAsync() public method

public SendAsync ( string message ) : Task
message string
return Task

WebSocketHandler() protected method

protected WebSocketHandler ( int maxIncomingMessageSize, ILogger logger ) : System
maxIncomingMessageSize int
logger ILogger
return System