IMessageProvider.Publish Method

Publish messages to a message bus.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Sub Publish ( _
    requestContext As TeamFoundationRequestContext, _
    messageBusName As String, _
    serializableObjects As Object(), _
    throwOnMissingPublisher As Boolean _
)
void Publish(
    TeamFoundationRequestContext requestContext,
    string messageBusName,
    Object[] serializableObjects,
    bool throwOnMissingPublisher
)
void Publish(
    TeamFoundationRequestContext^ requestContext, 
    String^ messageBusName, 
    array<Object^>^ serializableObjects, 
    bool throwOnMissingPublisher
)
abstract Publish : 
        requestContext:TeamFoundationRequestContext * 
        messageBusName:string * 
        serializableObjects:Object[] * 
        throwOnMissingPublisher:bool -> unit
function Publish(
    requestContext : TeamFoundationRequestContext, 
    messageBusName : String, 
    serializableObjects : Object[], 
    throwOnMissingPublisher : boolean
)

Parameters

  • serializableObjects
    Type: array<System.Object[]

    An array of messages that will be delivered to subscriptions for the specified message bus. Each object in the array will result in any subscribed action callback being invoked. The objects will be serialized using DataContract serialization.

Exceptions

Exception Condition
MessageBusNotFoundException

The specified message bus (publisher) has not been created using CreatePublisher.

ArgumentNullException

Any of the parameters are null

.NET Framework Security

See Also

Reference

IMessageProvider Interface

Microsoft.TeamFoundation.Framework.Server Namespace