Share via


ITransportConnection.Receive Method (String, Func<PersistentResponse, Task<Boolean>>, Int32)

.NET Framework 4

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

Syntax

'Declaration
Function Receive ( _
    messageId As String, _
    callback As Func(Of PersistentResponse, Task(Of Boolean)), _
    maxMessages As Integer _
) As IDisposable
'Usage
Dim instance As ITransportConnection 
Dim messageId As String 
Dim callback As Func(Of PersistentResponse, Task(Of Boolean))
Dim maxMessages As Integer 
Dim returnValue As IDisposable 

returnValue = instance.Receive(messageId, _
    callback, maxMessages)
IDisposable Receive(
    string messageId,
    Func<PersistentResponse, Task<bool>> callback,
    int maxMessages
)
IDisposable^ Receive(
    String^ messageId, 
    Func<PersistentResponse^, Task<bool>^>^ callback, 
    int maxMessages
)
abstract Receive : 
        messageId:string * 
        callback:Func<PersistentResponse, Task<bool>> * 
        maxMessages:int -> IDisposable
function Receive(
    messageId : String, 
    callback : Func<PersistentResponse, Task<boolean>>, 
    maxMessages : int
) : IDisposable

Parameters

Return Value

Type: System.IDisposable
Returns IDisposable.

See Also

Reference

ITransportConnection Interface

Receive Overload

Microsoft.AspNet.SignalR.Transports Namespace