Свойство | Тип | Описание | |
---|---|---|---|
AppendGroupPrefixes | IList |
||
CreateConnection | |||
FailResponse | System.Threading.Tasks.Task | ||
GetDefaultSignals | IList |
||
GetTransport | ITransport | ||
GetUserIdentity | string | ||
IsNegotiationRequest | bool | ||
IsPingRequest | bool | ||
IsStartRequest | bool | ||
ProcessNegotiationRequest | System.Threading.Tasks.Task | ||
ProcessPingRequest | System.Threading.Tasks.Task | ||
ProcessStartRequest | System.Threading.Tasks.Task | ||
SendJsonResponse | System.Threading.Tasks.Task | ||
TryGetConnectionId | bool | ||
VerifyGroups | IList |
Метод | Описание | |
---|---|---|
Authorize ( HttpRequest request ) : bool | ||
Initialize ( IServiceProvider serviceProvider ) : void | ||
ProcessRequest ( HttpContext context ) : System.Threading.Tasks.Task |
OWIN entry point.
|
|
ProcessRequestCore ( HttpContext context ) : System.Threading.Tasks.Task |
Handles all requests for PersistentConnections.
|
Метод | Описание | |
---|---|---|
AuthorizeRequest ( HttpRequest request ) : bool |
Called before every request and gives the user a authorize the user.
|
|
GetSignals ( string userId, string connectionId ) : IList |
Returns the signals used in the PersistentConnection.
|
|
OnConnected ( HttpRequest request, string connectionId ) : System.Threading.Tasks.Task |
Called when a new connection is made.
|
|
OnDisconnected ( HttpRequest request, string connectionId, bool stopCalled ) : System.Threading.Tasks.Task |
Called when a connection disconnects gracefully or due to a timeout.
|
|
OnReceived ( HttpRequest request, string connectionId, string data ) : System.Threading.Tasks.Task |
Called when data is received from a connection.
|
|
OnReconnected ( HttpRequest request, string connectionId ) : System.Threading.Tasks.Task |
Called when a connection reconnects after a timeout.
|
|
OnRejoiningGroups ( HttpRequest request, IList |
Called when a connection reconnects after a timeout to determine which groups should be rejoined.
|
Метод | Описание | |
---|---|---|
AppendGroupPrefixes ( HttpContext context, string connectionId, string groupsToken ) : IList |
||
CreateConnection ( string connectionId, IList |
||
FailResponse ( HttpResponse response, string message, int statusCode = 400 ) : System.Threading.Tasks.Task | ||
GetDefaultSignals ( string userId, string connectionId ) : IList |
||
GetTransport ( HttpContext context ) : ITransport | ||
GetUserIdentity ( HttpContext context ) : string | ||
IsNegotiationRequest ( HttpRequest request ) : bool | ||
IsPingRequest ( HttpRequest request ) : bool | ||
IsStartRequest ( HttpRequest request ) : bool | ||
ProcessNegotiationRequest ( HttpContext context ) : System.Threading.Tasks.Task | ||
ProcessPingRequest ( HttpContext context ) : System.Threading.Tasks.Task | ||
ProcessStartRequest ( HttpContext context, string connectionId ) : System.Threading.Tasks.Task | ||
SendJsonResponse ( HttpContext context, string jsonPayload ) : System.Threading.Tasks.Task | ||
TryGetConnectionId ( HttpContext context, string connectionToken, string &connectionId, string &message, int &statusCode ) : bool | ||
VerifyGroups ( string connectionId, string groupsToken ) : IList |
public Authorize ( HttpRequest request ) : bool | ||
request | HttpRequest | |
Результат | bool |
protected AuthorizeRequest ( HttpRequest request ) : bool | ||
request | HttpRequest | The |
Результат | bool |
protected GetSignals ( string userId, string connectionId ) : IList |
||
userId | string | The user id for the current connection. |
connectionId | string | The id of the incoming connection. |
Результат | IList |
public Initialize ( IServiceProvider serviceProvider ) : void | ||
serviceProvider | IServiceProvider | |
Результат | void |
protected OnConnected ( HttpRequest request, string connectionId ) : System.Threading.Tasks.Task | ||
request | HttpRequest | The |
connectionId | string | The id of the connecting client. |
Результат | System.Threading.Tasks.Task |
protected OnDisconnected ( HttpRequest request, string connectionId, bool stopCalled ) : System.Threading.Tasks.Task | ||
request | HttpRequest | The |
connectionId | string | The id of the disconnected connection. |
stopCalled | bool |
/// true, if stop was called on the client closing the connection gracefully;
/// false, if the connection has been lost for longer than the
/// |
Результат | System.Threading.Tasks.Task |
protected OnReceived ( HttpRequest request, string connectionId, string data ) : System.Threading.Tasks.Task | ||
request | HttpRequest | The |
connectionId | string | The id of the connection sending the data. |
data | string | The payload sent to the connection. |
Результат | System.Threading.Tasks.Task |
protected OnReconnected ( HttpRequest request, string connectionId ) : System.Threading.Tasks.Task | ||
request | HttpRequest | The |
connectionId | string | The id of the re-connecting client. |
Результат | System.Threading.Tasks.Task |
protected OnRejoiningGroups ( HttpRequest request, IList |
||
request | HttpRequest | The |
groups | IList |
The groups the calling connection claims to be part of. |
connectionId | string | The id of the reconnecting client. |
Результат | IList |
public ProcessRequest ( HttpContext context ) : System.Threading.Tasks.Task | ||
context | HttpContext | |
Результат | System.Threading.Tasks.Task |
public ProcessRequestCore ( HttpContext context ) : System.Threading.Tasks.Task | ||
context | HttpContext | The |
Результат | System.Threading.Tasks.Task |