Свойство | Type | Description | |
---|---|---|---|
_ackHandler | IAckHandler | ||
_connectionIdPrefixGenerator | IConnectionIdPrefixGenerator | ||
_counters | IPerformanceCounterWriter | ||
_jsonSerializer | IJsonSerializer | ||
_newMessageBus | IMessageBus | ||
_trace | ITraceManager | ||
_transport | ITransport |
Свойство | Type | Description | |
---|---|---|---|
GetTransport | ITransport | ||
IsNegotiationRequest | bool | ||
ProcessJsonpNegotiationRequest | Task | ||
ProcessNegotiationRequest | Task |
Méthode | Description | |
---|---|---|
Initialize ( IDependencyResolver resolver ) : void | ||
ProcessRequestAsync ( HostContext context ) : Task |
Handles all requests for PersistentConnections.
|
Méthode | 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.
|
Méthode | 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 |
|
Résultat |
protected GetDefaultSignals ( string connectionId ) : IEnumerable |
||
connectionId | string | The id of the incoming connection. |
Résultat | IEnumerable |
protected GetSignals ( string connectionId, IRequest request ) : IEnumerable |
||
connectionId | string | The id of the incoming connection. |
request | IRequest | |
Résultat | IEnumerable |
public Initialize ( IDependencyResolver resolver ) : void | ||
resolver | IDependencyResolver | |
Résultat | void |
protected OnConnectedAsync ( IRequest request, string connectionId ) : System.Threading.Tasks.Task | ||
request | IRequest | The |
connectionId | string | The id of the connecting client. |
Résultat | System.Threading.Tasks.Task |
protected OnDisconnectAsync ( string connectionId ) : System.Threading.Tasks.Task | ||
connectionId | string | The id of the disconnected connection. |
Résultat | 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. |
Résultat | 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. |
Résultat | 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. |
Résultat | IEnumerable |
public ProcessRequestAsync ( HostContext context ) : Task | ||
context | HostContext | The |
Résultat | Task |
protected IConnectionIdPrefixGenerator _connectionIdPrefixGenerator | ||
Résultat | IConnectionIdPrefixGenerator |
protected IPerformanceCounterWriter _counters | ||
Résultat | IPerformanceCounterWriter |
protected IJsonSerializer _jsonSerializer | ||
Résultat | IJsonSerializer |