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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- messageBusName
Type: System.String
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.
- throwOnMissingPublisher
Type: System.Boolean
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.