C# Class Microsoft.R.Host.Client.WebSocketMessageTransport

Inheritance: IMessageTransport
Show file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
CloseAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
ReceiveAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
SendAsync ( Message message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
WebSocketMessageTransport ( WebSocket socket ) : System

Private Methods

Method Description
IsTransportException ( Exception ex ) : bool

Method Details

CloseAsync() public method

public CloseAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
return Task

ReceiveAsync() public method

public ReceiveAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
return Task

SendAsync() public method

public SendAsync ( Message message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
message Message
cancellationToken System.Threading.CancellationToken
return Task

WebSocketMessageTransport() public method

public WebSocketMessageTransport ( WebSocket socket ) : System
socket System.Net.WebSockets.WebSocket
return System