C# 클래스 SignalR.PersistentConnection

상속: HttpTaskAsyncHandler, IGroupManager
파일 보기 프로젝트 열기: Icenium/SignalR

보호된 프로퍼티들

프로퍼티 타입 설명
_ackHandler IAckHandler
_connectionIdPrefixGenerator IConnectionIdPrefixGenerator
_counters IPerformanceCounterWriter
_jsonSerializer IJsonSerializer
_newMessageBus IMessageBus
_trace ITraceManager
_transport ITransport

Private Properties

프로퍼티 타입 설명
GetTransport ITransport
IsNegotiationRequest bool
ProcessJsonpNegotiationRequest Task
ProcessNegotiationRequest Task

공개 메소드들

메소드 설명
Initialize ( IDependencyResolver resolver ) : void
ProcessRequestAsync ( HostContext context ) : Task

Handles all requests for PersistentConnections.

보호된 메소드들

메소드 설명
CreateConnection ( string connectionId, IEnumerable signals, IEnumerable groups ) : Connection
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 groups, string connectionId ) : Task

Called when a connection reconnects after a timeout.

OnRejoiningGroups ( IRequest request, IEnumerable groups, string connectionId ) : IEnumerable

Called when a connection reconnects after a timeout to determine which groups should be rejoined.

비공개 메소드들

메소드 설명
GetTransport ( SignalR.HostContext context ) : ITransport
IsNegotiationRequest ( IRequest request ) : bool
ProcessJsonpNegotiationRequest ( HostContext context, object payload ) : Task
ProcessNegotiationRequest ( HostContext context ) : Task

메소드 상세

CreateConnection() 보호된 메소드

protected CreateConnection ( string connectionId, IEnumerable signals, IEnumerable groups ) : Connection
connectionId string
signals IEnumerable
groups IEnumerable
리턴 Connection

GetDefaultSignals() 보호된 메소드

Returns the default signals for the PersistentConnection.
protected GetDefaultSignals ( string connectionId ) : IEnumerable
connectionId string The id of the incoming connection.
리턴 IEnumerable

GetSignals() 보호된 메소드

Returns the signals used in the PersistentConnection.
protected GetSignals ( string connectionId, IRequest request ) : IEnumerable
connectionId string The id of the incoming connection.
request IRequest
리턴 IEnumerable

Initialize() 공개 메소드

public Initialize ( IDependencyResolver resolver ) : void
resolver IDependencyResolver
리턴 void

OnConnectedAsync() 보호된 메소드

Called when a new connection is made.
protected OnConnectedAsync ( IRequest request, string connectionId ) : System.Threading.Tasks.Task
request IRequest The for the current connection.
connectionId string The id of the connecting client.
리턴 System.Threading.Tasks.Task

OnDisconnectAsync() 보호된 메소드

Called when a connection disconnects.
protected OnDisconnectAsync ( string connectionId ) : System.Threading.Tasks.Task
connectionId string The id of the disconnected connection.
리턴 System.Threading.Tasks.Task

OnReceivedAsync() 보호된 메소드

Called when data is received from a connection.
protected OnReceivedAsync ( IRequest request, string connectionId, string data ) : System.Threading.Tasks.Task
request IRequest The for the current connection.
connectionId string The id of the connection sending the data.
data string The payload sent to the connection.
리턴 System.Threading.Tasks.Task

OnReconnectedAsync() 보호된 메소드

Called when a connection reconnects after a timeout.
protected OnReconnectedAsync ( IRequest request, IEnumerable groups, string connectionId ) : Task
request IRequest The for the current connection.
groups IEnumerable The groups the calling connection is a part of.
connectionId string The id of the re-connecting client.
리턴 Task

OnRejoiningGroups() 보호된 메소드

Called when a connection reconnects after a timeout to determine which groups should be rejoined.
protected OnRejoiningGroups ( IRequest request, IEnumerable groups, string connectionId ) : IEnumerable
request IRequest The for the current connection.
groups IEnumerable The groups the calling connection claims to be part of.
connectionId string The id of the reconnecting client.
리턴 IEnumerable

ProcessRequestAsync() 공개 메소드

Handles all requests for PersistentConnections.
/// Thrown if connection wasn't initialized. /// Thrown if the transport wasn't specified. /// Thrown if the connection id wasn't specified. ///
public ProcessRequestAsync ( HostContext context ) : Task
context HostContext The for the current request.
리턴 Task

프로퍼티 상세

_ackHandler 보호되어 있는 프로퍼티

protected IAckHandler _ackHandler
리턴 IAckHandler

_connectionIdPrefixGenerator 보호되어 있는 프로퍼티

protected IConnectionIdPrefixGenerator _connectionIdPrefixGenerator
리턴 IConnectionIdPrefixGenerator

_counters 보호되어 있는 프로퍼티

protected IPerformanceCounterWriter _counters
리턴 IPerformanceCounterWriter

_jsonSerializer 보호되어 있는 프로퍼티

protected IJsonSerializer _jsonSerializer
리턴 IJsonSerializer

_newMessageBus 보호되어 있는 프로퍼티

protected IMessageBus _newMessageBus
리턴 IMessageBus

_trace 보호되어 있는 프로퍼티

protected ITraceManager _trace
리턴 ITraceManager

_transport 보호되어 있는 프로퍼티

protected ITransport _transport
리턴 ITransport