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

Inheritance: IConnection, ITransportConnection, ISubscriber
Datei anzeigen Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript Class Usage Examples

Private Properties

Property Type Description
CreateMessage Message
ExcludeMessage bool
GetFilter string
GetMessageBuffer ArraySegment
GetResponse Microsoft.AspNetCore.SignalR.Transports.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, ILoggerFactory loggerFactory, 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, ILoggerFactory loggerFactory, IAckHandler ackHandler, IPerformanceCounterManager performanceCounterManager, IProtectedData protectedData, IMemoryPool pool ) : System
newMessageBus IMessageBus
jsonSerializer Newtonsoft.Json.JsonSerializer
baseSignal string
connectionId string
signals IList
groups IList
loggerFactory ILoggerFactory
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