Share via


MessageBus.Publish Method

.NET Framework 4

Publishes a new message to the specified event on the bus.

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

Syntax

'Declaration
Public Overridable Function Publish ( _
    message As Message _
) As Task
'Usage
Dim instance As MessageBus 
Dim message As Message 
Dim returnValue As Task 

returnValue = instance.Publish(message)
public virtual Task Publish(
    Message message
)
public:
virtual Task^ Publish(
    Message^ message
)
abstract Publish : 
        message:Message -> Task  
override Publish : 
        message:Message -> Task
public function Publish(
    message : Message
) : Task

Parameters

Return Value

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

Implements

IMessageBus.Publish(Message)

See Also

Reference

MessageBus Class

Microsoft.AspNet.SignalR.Messaging Namespace