Share via


Subscription Constructor

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Messaging
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Protected Sub New ( _
    identity As String, _
    eventKeys As IEnumerable(Of String), _
    callback As Func(Of MessageResult, Task(Of Boolean)), _
    maxMessages As Integer, _
    counters As IPerformanceCounterManager _
)
'Usage
Dim identity As String 
Dim eventKeys As IEnumerable(Of String)
Dim callback As Func(Of MessageResult, Task(Of Boolean))
Dim maxMessages As Integer 
Dim counters As IPerformanceCounterManager 

Dim instance As New Subscription(identity, _
    eventKeys, callback, maxMessages, _
    counters)
protected Subscription(
    string identity,
    IEnumerable<string> eventKeys,
    Func<MessageResult, Task<bool>> callback,
    int maxMessages,
    IPerformanceCounterManager counters
)
protected:
Subscription(
    String^ identity, 
    IEnumerable<String^>^ eventKeys, 
    Func<MessageResult, Task<bool>^>^ callback, 
    int maxMessages, 
    IPerformanceCounterManager^ counters
)
new : 
        identity:string * 
        eventKeys:IEnumerable<string> * 
        callback:Func<MessageResult, Task<bool>> * 
        maxMessages:int * 
        counters:IPerformanceCounterManager -> Subscription
protected function Subscription(
    identity : String, 
    eventKeys : IEnumerable<String>, 
    callback : Func<MessageResult, Task<boolean>>, 
    maxMessages : int, 
    counters : IPerformanceCounterManager
)

Parameters

See Also

Reference

Subscription Class

Microsoft.AspNet.SignalR.Messaging Namespace