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
- message
Type: Microsoft.AspNet.SignalR.Messaging.Message
The message to publish.
Return Value
Type: System.Threading.Tasks.Task
Returns Task.