Connection Constructor
.NET Framework 4
Namespace: Microsoft.AspNet.SignalR.Infrastructure
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Public Sub New ( _
newMessageBus As IMessageBus, _
jsonSerializer As IJsonSerializer, _
baseSignal As String, _
connectionId As String, _
signals As IList(Of String), _
groups As IList(Of String), _
traceManager As ITraceManager, _
ackHandler As IAckHandler, _
performanceCounterManager As IPerformanceCounterManager, _
protectedData As IProtectedData _
)
'Usage
Dim newMessageBus As IMessageBus
Dim jsonSerializer As IJsonSerializer
Dim baseSignal As String
Dim connectionId As String
Dim signals As IList(Of String)
Dim groups As IList(Of String)
Dim traceManager As ITraceManager
Dim ackHandler As IAckHandler
Dim performanceCounterManager As IPerformanceCounterManager
Dim protectedData As IProtectedData
Dim instance As New Connection(newMessageBus, _
jsonSerializer, baseSignal, connectionId, _
signals, groups, traceManager, ackHandler, _
performanceCounterManager, protectedData)
public Connection(
IMessageBus newMessageBus,
IJsonSerializer jsonSerializer,
string baseSignal,
string connectionId,
IList<string> signals,
IList<string> groups,
ITraceManager traceManager,
IAckHandler ackHandler,
IPerformanceCounterManager performanceCounterManager,
IProtectedData protectedData
)
public:
Connection(
IMessageBus^ newMessageBus,
IJsonSerializer^ jsonSerializer,
String^ baseSignal,
String^ connectionId,
IList<String^>^ signals,
IList<String^>^ groups,
ITraceManager^ traceManager,
IAckHandler^ ackHandler,
IPerformanceCounterManager^ performanceCounterManager,
IProtectedData^ protectedData
)
new :
newMessageBus:IMessageBus *
jsonSerializer:IJsonSerializer *
baseSignal:string *
connectionId:string *
signals:IList<string> *
groups:IList<string> *
traceManager:ITraceManager *
ackHandler:IAckHandler *
performanceCounterManager:IPerformanceCounterManager *
protectedData:IProtectedData -> Connection
public function Connection(
newMessageBus : IMessageBus,
jsonSerializer : IJsonSerializer,
baseSignal : String,
connectionId : String,
signals : IList<String>,
groups : IList<String>,
traceManager : ITraceManager,
ackHandler : IAckHandler,
performanceCounterManager : IPerformanceCounterManager,
protectedData : IProtectedData
)
Parameters
- newMessageBus
Type: Microsoft.AspNet.SignalR.Messaging.IMessageBus
- jsonSerializer
Type: Microsoft.AspNet.SignalR.Json.IJsonSerializer
- baseSignal
Type: System.String
- connectionId
Type: System.String
- signals
Type: System.Collections.Generic.IList<String>
- groups
Type: System.Collections.Generic.IList<String>
- traceManager
Type: Microsoft.AspNet.SignalR.Tracing.ITraceManager
- ackHandler
Type: Microsoft.AspNet.SignalR.Infrastructure.IAckHandler
- performanceCounterManager
Type: Microsoft.AspNet.SignalR.Infrastructure.IPerformanceCounterManager
- protectedData
Type: Microsoft.AspNet.SignalR.Infrastructure.IProtectedData