Share via


MessageBus.CreateSubscription Method

.NET Framework 4

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

Syntax

'Declaration
Protected Overridable Function CreateSubscription ( _
    subscriber As ISubscriber, _
    cursor As String, _
    callback As Func(Of MessageResult, Task(Of Boolean)), _
    messageBufferSize As Integer _
) As Subscription
'Usage
Dim subscriber As ISubscriber 
Dim cursor As String 
Dim callback As Func(Of MessageResult, Task(Of Boolean))
Dim messageBufferSize As Integer 
Dim returnValue As Subscription 

returnValue = Me.CreateSubscription(subscriber, _
    cursor, callback, messageBufferSize)
protected virtual Subscription CreateSubscription(
    ISubscriber subscriber,
    string cursor,
    Func<MessageResult, Task<bool>> callback,
    int messageBufferSize
)
protected:
virtual Subscription^ CreateSubscription(
    ISubscriber^ subscriber, 
    String^ cursor, 
    Func<MessageResult, Task<bool>^>^ callback, 
    int messageBufferSize
)
abstract CreateSubscription : 
        subscriber:ISubscriber * 
        cursor:string * 
        callback:Func<MessageResult, Task<bool>> * 
        messageBufferSize:int -> Subscription  
override CreateSubscription : 
        subscriber:ISubscriber * 
        cursor:string * 
        callback:Func<MessageResult, Task<bool>> * 
        messageBufferSize:int -> Subscription
protected function CreateSubscription(
    subscriber : ISubscriber, 
    cursor : String, 
    callback : Func<MessageResult, Task<boolean>>, 
    messageBufferSize : int
) : Subscription

Parameters

Return Value

Type: Microsoft.AspNet.SignalR.Messaging.Subscription
Returns Subscription.

See Also

Reference

MessageBus Class

Microsoft.AspNet.SignalR.Messaging Namespace