프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AppendGroupPrefixes | IList |
||
CreateConnection | Connection | ||
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 | ||
ProcessRequestPostGroupRead | System.Threading.Tasks.Task | ||
ProcessStartRequest | System.Threading.Tasks.Task | ||
SendJsonResponse | System.Threading.Tasks.Task | ||
TryGetConnectionId | bool | ||
VerifyGroups | IList |
메소드 | 설명 | |
---|---|---|
Authorize ( IRequest request ) : bool | ||
Initialize ( IDependencyResolver resolver ) : void | ||
ProcessRequest ( Microsoft.AspNet.SignalR.HostContext context ) : System.Threading.Tasks.Task |
Handles all requests for PersistentConnections.
|
|
ProcessRequest ( object>.IDictionary |
OWIN entry point.
|
메소드 | 설명 | |
---|---|---|
AuthorizeRequest ( IRequest 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 ( IRequest request, string connectionId ) : System.Threading.Tasks.Task |
Called when a new connection is made.
|
|
OnDisconnected ( IRequest request, string connectionId, bool stopCalled ) : System.Threading.Tasks.Task |
Called when a connection disconnects gracefully or due to a timeout.
|
|
OnReceived ( IRequest request, string connectionId, string data ) : System.Threading.Tasks.Task |
Called when data is received from a connection.
|
|
OnReconnected ( IRequest request, string connectionId ) : System.Threading.Tasks.Task |
Called when a connection reconnects after a timeout.
|
|
OnRejoiningGroups ( IRequest request, IList |
Called when a connection reconnects after a timeout to determine which groups should be rejoined.
|
메소드 | 설명 | |
---|---|---|
AppendGroupPrefixes ( Microsoft.AspNet.SignalR.HostContext context, string connectionId, string groupsToken ) : IList |
||
CreateConnection ( string connectionId, IList |
||
FailResponse ( IResponse response, string message, int statusCode = 400 ) : System.Threading.Tasks.Task | ||
GetDefaultSignals ( string userId, string connectionId ) : IList |
||
GetTransport ( Microsoft.AspNet.SignalR.HostContext context ) : ITransport | ||
GetUserIdentity ( Microsoft.AspNet.SignalR.HostContext context ) : string | ||
IsNegotiationRequest ( IRequest request ) : bool | ||
IsPingRequest ( IRequest request ) : bool | ||
IsStartRequest ( IRequest request ) : bool | ||
ProcessNegotiationRequest ( Microsoft.AspNet.SignalR.HostContext context ) : System.Threading.Tasks.Task | ||
ProcessPingRequest ( Microsoft.AspNet.SignalR.HostContext context ) : System.Threading.Tasks.Task | ||
ProcessRequestPostGroupRead ( Microsoft.AspNet.SignalR.HostContext context, string groupsToken ) : System.Threading.Tasks.Task | ||
ProcessStartRequest ( Microsoft.AspNet.SignalR.HostContext context, string connectionId ) : System.Threading.Tasks.Task | ||
SendJsonResponse ( Microsoft.AspNet.SignalR.HostContext context, string jsonPayload ) : System.Threading.Tasks.Task | ||
TryGetConnectionId ( Microsoft.AspNet.SignalR.HostContext context, string connectionToken, string &connectionId, string &message, int &statusCode ) : bool | ||
VerifyGroups ( string connectionId, string groupsToken ) : IList |
protected AuthorizeRequest ( IRequest request ) : bool | ||
request | IRequest | 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 ( IDependencyResolver resolver ) : void | ||
resolver | IDependencyResolver | |
리턴 | void |
protected OnConnected ( IRequest request, string connectionId ) : System.Threading.Tasks.Task | ||
request | IRequest | The |
connectionId | string | The id of the connecting client. |
리턴 | System.Threading.Tasks.Task |
protected OnDisconnected ( IRequest request, string connectionId, bool stopCalled ) : System.Threading.Tasks.Task | ||
request | IRequest | 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 ( 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. |
리턴 | System.Threading.Tasks.Task |
protected OnReconnected ( IRequest request, string connectionId ) : System.Threading.Tasks.Task | ||
request | IRequest | The |
connectionId | string | The id of the re-connecting client. |
리턴 | System.Threading.Tasks.Task |
protected OnRejoiningGroups ( IRequest request, IList |
||
request | IRequest | The |
groups | IList |
The groups the calling connection claims to be part of. |
connectionId | string | The id of the reconnecting client. |
리턴 | IList |
public ProcessRequest ( Microsoft.AspNet.SignalR.HostContext context ) : System.Threading.Tasks.Task | ||
context | Microsoft.AspNet.SignalR.HostContext | The |
리턴 | System.Threading.Tasks.Task |
public ProcessRequest ( object>.IDictionary |
||
environment | object>.IDictionary | |
리턴 | System.Threading.Tasks.Task |