Subscribe Method
Collapse the table of content
Expand the table of content

IMessageBus.Subscribe Method

Visual Studio 2010
.NET Framework 4

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

'Declaration
Function Subscribe ( _
	subscriber As ISubscriber, _
	cursor As String, _
	callback As Func(Of MessageResult, Task(Of Boolean)), _
	maxMessages As Integer _
) As IDisposable
'Usage
Dim instance As IMessageBus 
Dim subscriber As ISubscriber 
Dim cursor As String 
Dim callback As Func(Of MessageResult, Task(Of Boolean))
Dim maxMessages As Integer 
Dim returnValue As IDisposable 

returnValue = instance.Subscribe(subscriber, _
	cursor, callback, maxMessages)

Parameters

subscriber
Type: Microsoft.AspNet.SignalR.Messaging.ISubscriber
cursor
Type: System.String
callback
Type: System.Func(Of MessageResult, Task(Of Boolean))
maxMessages
Type: System.Int32

Return Value

Type: System.IDisposable
Returns IDisposable.
Show:
© 2016 Microsoft