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
- messageId
Type: System.String
- cancel
Type: System.Threading.CancellationToken
- maxMessages
Type: System.Int32
Return Value
Type: System.Threading.Tasks.Task<PersistentResponse>
Returns Task<TResult>.