Share via


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

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

Parameters

Return Value

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

See Also

Reference

ITransportConnection Interface

Receive Overload

Microsoft.AspNet.SignalR.Transports Namespace