Share via


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

.NET Framework 4

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

Syntax

'Declaration
Public Function Receive ( _
    messageId As String, _
    callback As Func(Of PersistentResponse, Task(Of Boolean)), _
    maxMessages As Integer _
) As IDisposable
'Usage
Dim instance As Connection 
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)
public IDisposable Receive(
    string messageId,
    Func<PersistentResponse, Task<bool>> callback,
    int maxMessages
)
public:
virtual IDisposable^ Receive(
    String^ messageId, 
    Func<PersistentResponse^, Task<bool>^>^ callback, 
    int maxMessages
) sealed
abstract Receive : 
        messageId:string * 
        callback:Func<PersistentResponse, Task<bool>> * 
        maxMessages:int -> IDisposable  
override Receive : 
        messageId:string * 
        callback:Func<PersistentResponse, Task<bool>> * 
        maxMessages:int -> IDisposable
public final function Receive(
    messageId : String, 
    callback : Func<PersistentResponse, Task<boolean>>, 
    maxMessages : int
) : IDisposable

Parameters

Return Value

Type: System.IDisposable
Returns IDisposable.

Implements

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

See Also

Reference

Connection Class

Receive Overload

Microsoft.AspNet.SignalR.Infrastructure Namespace