Share via


Connection.Receive Method (String, CancellationToken, 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, _
    cancel As CancellationToken, _
    maxMessages As Integer _
) As Task(Of PersistentResponse)
'Usage
Dim instance As Connection 
Dim messageId As String 
Dim cancel As CancellationToken 
Dim maxMessages As Integer 
Dim returnValue As Task(Of PersistentResponse)

returnValue = instance.Receive(messageId, _
    cancel, maxMessages)
public Task<PersistentResponse> Receive(
    string messageId,
    CancellationToken cancel,
    int maxMessages
)
public:
virtual Task<PersistentResponse^>^ Receive(
    String^ messageId, 
    CancellationToken cancel, 
    int maxMessages
) sealed
abstract Receive : 
        messageId:string * 
        cancel:CancellationToken * 
        maxMessages:int -> Task<PersistentResponse> 
override Receive : 
        messageId:string * 
        cancel:CancellationToken * 
        maxMessages:int -> Task<PersistentResponse> 
public final function Receive(
    messageId : String, 
    cancel : CancellationToken, 
    maxMessages : int
) : Task<PersistentResponse>

Parameters

Return Value

Type: System.Threading.Tasks.Task<PersistentResponse>
Returns Task<TResult>.

Implements

ITransportConnection.Receive(String, CancellationToken, Int32)

See Also

Reference

Connection Class

Receive Overload

Microsoft.AspNet.SignalR.Infrastructure Namespace