C# Class Microsoft.AspNet.SignalR.WebSockets.WebSocketMessageReader

Afficher le fichier Open project: SignalR/SignalR Class Usage Examples

Méthodes publiques

Méthode Description
ReadMessageAsync ( WebSocket webSocket, int bufferSize, int maxMessageSize, CancellationToken disconnectToken ) : Task

Private Methods

Méthode Description
BufferSliceToByteArray ( byte buffer, int count ) : byte[]
BufferSliceToString ( byte buffer, int count ) : string
TryGetMessage ( WebSocketReceiveResult receiveResult, byte buffer, WebSocketMessage &message ) : bool

Method Details

ReadMessageAsync() public static méthode

public static ReadMessageAsync ( WebSocket webSocket, int bufferSize, int maxMessageSize, CancellationToken disconnectToken ) : Task
webSocket System.Net.WebSockets.WebSocket
bufferSize int
maxMessageSize int
disconnectToken System.Threading.CancellationToken
Résultat Task