C# Class SignalR.Connection

Inheritance: IConnection, ITransportConnection, ISubscriber
Mostra file Open project: robink-teleopti/SignalR

Private Properties

Property Type Description
GetResponse PersistentResponse
PopulateResponseState void
ProcessCommand void
ProcessResults List
SendMessage Task

Public Methods

Method Description
Broadcast ( object value ) : Task
Connection ( IMessageBus messageBus, IJsonSerializer jsonSerializer, string baseSignal, string connectionId, IEnumerable signals, IEnumerable groups, ITraceManager traceManager ) : System
ReceiveAsync ( CancellationToken timeoutToken ) : Task
ReceiveAsync ( string messageId, CancellationToken timeoutToken ) : Task
Send ( string signal, object value ) : Task
SendCommand ( SignalR.SignalCommand command ) : Task

Private Methods

Method Description
GetResponse ( SignalR.MessageResult result ) : PersistentResponse
PopulateResponseState ( PersistentResponse response ) : void
ProcessCommand ( SignalR.SignalCommand command ) : void
ProcessResults ( IList source ) : List
SendMessage ( string key, object value ) : Task

Method Details

Broadcast() public method

public Broadcast ( object value ) : Task
value object
return Task

Connection() public method

public Connection ( IMessageBus messageBus, IJsonSerializer jsonSerializer, string baseSignal, string connectionId, IEnumerable signals, IEnumerable groups, ITraceManager traceManager ) : System
messageBus IMessageBus
jsonSerializer IJsonSerializer
baseSignal string
connectionId string
signals IEnumerable
groups IEnumerable
traceManager ITraceManager
return System

ReceiveAsync() public method

public ReceiveAsync ( CancellationToken timeoutToken ) : Task
timeoutToken System.Threading.CancellationToken
return Task

ReceiveAsync() public method

public ReceiveAsync ( string messageId, CancellationToken timeoutToken ) : Task
messageId string
timeoutToken System.Threading.CancellationToken
return Task

Send() public method

public Send ( string signal, object value ) : Task
signal string
value object
return Task

SendCommand() public method

public SendCommand ( SignalR.SignalCommand command ) : Task
command SignalR.SignalCommand
return Task