Property | Type | Description | |
---|---|---|---|
_ackHandler | IAckHandler | ||
_connectionIdPrefixGenerator | IConnectionIdPrefixGenerator | ||
_counters | IPerformanceCounterWriter | ||
_jsonSerializer | IJsonSerializer | ||
_newMessageBus | IMessageBus | ||
_trace | ITraceManager | ||
_transport | ITransport |
Property | Type | Description | |
---|---|---|---|
GetTransport | ITransport | ||
IsNegotiationRequest | bool | ||
ProcessJsonpNegotiationRequest | Task | ||
ProcessNegotiationRequest | Task |
Method | Description | |
---|---|---|
Initialize ( IDependencyResolver resolver ) : void | ||
ProcessRequestAsync ( HostContext context ) : Task |
Handles all requests for PersistentConnections.
|
Method | Description | |
---|---|---|
CreateConnection ( string connectionId, IEnumerable |
||
GetDefaultSignals ( string connectionId ) : IEnumerable |
Returns the default signals for the PersistentConnection.
|
|
GetSignals ( string connectionId, IRequest request ) : IEnumerable |
Returns the signals used in the PersistentConnection.
|
|
OnConnectedAsync ( IRequest request, string connectionId ) : System.Threading.Tasks.Task |
Called when a new connection is made.
|
|
OnDisconnectAsync ( string connectionId ) : System.Threading.Tasks.Task |
Called when a connection disconnects.
|
|
OnReceivedAsync ( IRequest request, string connectionId, string data ) : System.Threading.Tasks.Task |
Called when data is received from a connection.
|
|
OnReconnectedAsync ( IRequest request, IEnumerable |
Called when a connection reconnects after a timeout.
|
|
OnRejoiningGroups ( IRequest request, IEnumerable |
Called when a connection reconnects after a timeout to determine which groups should be rejoined.
|
Method | Description | |
---|---|---|
GetTransport ( SignalR.HostContext context ) : ITransport | ||
IsNegotiationRequest ( IRequest request ) : bool | ||
ProcessJsonpNegotiationRequest ( HostContext context, object payload ) : Task | ||
ProcessNegotiationRequest ( HostContext context ) : Task |
protected CreateConnection ( string connectionId, IEnumerable |
||
connectionId | string | |
signals | IEnumerable |
|
groups | IEnumerable |
|
return |
protected GetDefaultSignals ( string connectionId ) : IEnumerable |
||
connectionId | string | The id of the incoming connection. |
return | IEnumerable |
protected GetSignals ( string connectionId, IRequest request ) : IEnumerable |
||
connectionId | string | The id of the incoming connection. |
request | IRequest | |
return | IEnumerable |
public Initialize ( IDependencyResolver resolver ) : void | ||
resolver | IDependencyResolver | |
return | void |
protected OnConnectedAsync ( IRequest request, string connectionId ) : System.Threading.Tasks.Task | ||
request | IRequest | The |
connectionId | string | The id of the connecting client. |
return | System.Threading.Tasks.Task |
protected OnDisconnectAsync ( string connectionId ) : System.Threading.Tasks.Task | ||
connectionId | string | The id of the disconnected connection. |
return | System.Threading.Tasks.Task |
protected OnReceivedAsync ( IRequest request, string connectionId, string data ) : System.Threading.Tasks.Task | ||
request | IRequest | The |
connectionId | string | The id of the connection sending the data. |
data | string | The payload sent to the connection. |
return | System.Threading.Tasks.Task |
protected OnReconnectedAsync ( IRequest request, IEnumerable |
||
request | IRequest | The |
groups | IEnumerable |
The groups the calling connection is a part of. |
connectionId | string | The id of the re-connecting client. |
return | Task |
protected OnRejoiningGroups ( IRequest request, IEnumerable |
||
request | IRequest | The |
groups | IEnumerable |
The groups the calling connection claims to be part of. |
connectionId | string | The id of the reconnecting client. |
return | IEnumerable |
public ProcessRequestAsync ( HostContext context ) : Task | ||
context | HostContext | The |
return | Task |
protected IConnectionIdPrefixGenerator _connectionIdPrefixGenerator | ||
return | IConnectionIdPrefixGenerator |
protected IPerformanceCounterWriter _counters | ||
return | IPerformanceCounterWriter |
protected IJsonSerializer _jsonSerializer | ||
return | IJsonSerializer |