Share via


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

See Also

Reference

Connection Class

Microsoft.AspNet.SignalR.Infrastructure Namespace