C# Class Microsoft.AspNet.SignalR.Infrastructure.Connection

Inheritance: IConnection, ITransportConnection, ISubscriber
显示文件 Open project: SignalR/SignalR Class Usage Examples

Private Properties

Property Type Description
CreateMessage Microsoft.AspNet.SignalR.Messaging.Message
ExcludeMessage bool
GetFilter string
GetMessageBuffer ArraySegment
GetResponse PersistentResponse
MessageBusCallback Task
MultiSend Task
PopulateResponseState void
PopulateResponseState void
ProcessCommand void
ProcessResults void
ProcessResultsCore void
SerializeMessageValue ArraySegment

Public Methods

Method Description
Connection ( IMessageBus newMessageBus, JsonSerializer jsonSerializer, string baseSignal, string connectionId, IList signals, IList groups, ITraceManager traceManager, IAckHandler ackHandler, IPerformanceCounterManager performanceCounterManager, IProtectedData protectedData, IMemoryPool pool ) : System
Receive ( string messageId, Func callback, int maxMessages, object state ) : IDisposable
Send ( ConnectionMessage message ) : Task

Private Methods

Method Description
CreateMessage ( string key, object value ) : Message
ExcludeMessage ( Message message ) : bool
GetFilter ( IList excludedSignals ) : string
GetMessageBuffer ( object value ) : ArraySegment
GetResponse ( MessageResult result ) : PersistentResponse
MessageBusCallback ( MessageResult result, object state ) : Task
MultiSend ( IList signals, object value, IList excludedSignals ) : Task
PopulateResponseState ( PersistentResponse response ) : void
PopulateResponseState ( PersistentResponse response, DiffSet groupSet, JsonSerializer serializer, IProtectedData protectedData, string connectionId ) : void
ProcessCommand ( Command command ) : void
ProcessResults ( MessageResult result ) : void
ProcessResultsCore ( Connection connection, Message message ) : void
SerializeMessageValue ( object value ) : ArraySegment

Method Details

Connection() public method

public Connection ( IMessageBus newMessageBus, JsonSerializer jsonSerializer, string baseSignal, string connectionId, IList signals, IList groups, ITraceManager traceManager, IAckHandler ackHandler, IPerformanceCounterManager performanceCounterManager, IProtectedData protectedData, IMemoryPool pool ) : System
newMessageBus IMessageBus
jsonSerializer JsonSerializer
baseSignal string
connectionId string
signals IList
groups IList
traceManager ITraceManager
ackHandler IAckHandler
performanceCounterManager IPerformanceCounterManager
protectedData IProtectedData
pool IMemoryPool
return System

Receive() public method

public Receive ( string messageId, Func callback, int maxMessages, object state ) : IDisposable
messageId string
callback Func
maxMessages int
state object
return IDisposable

Send() public method

public Send ( ConnectionMessage message ) : Task
message ConnectionMessage
return Task