Share via


ScaleoutMessageBus.OnReceived Method

.NET Framework 4

Invoked when a payload is received from the backplane. There should only be one active call at any time.

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

Syntax

'Declaration
Protected Function OnReceived ( _
    streamId As String, _
    id As ULong, _
    messages As IList(Of Message) _
) As Task
'Usage
Dim streamId As String 
Dim id As ULong 
Dim messages As IList(Of Message)
Dim returnValue As Task 

returnValue = Me.OnReceived(streamId, _
    id, messages)
protected Task OnReceived(
    string streamId,
    ulong id,
    IList<Message> messages
)
protected:
Task^ OnReceived(
    String^ streamId, 
    unsigned long long id, 
    IList<Message^>^ messages
)
member OnReceived : 
        streamId:string * 
        id:uint64 * 
        messages:IList<Message> -> Task
protected function OnReceived(
    streamId : String, 
    id : ulong, 
    messages : IList<Message>
) : Task

Parameters

  • id
    Type: System.UInt64
    The ID of the payload within that stream.

Return Value

Type: System.Threading.Tasks.Task
Returns Task.

See Also

Reference

ScaleoutMessageBus Class

Microsoft.AspNet.SignalR.Messaging Namespace