TeamFoundationMessageBusService.Publish Method
Sends a set of serializable objects to the message bus.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub Publish ( _
requestContext As TeamFoundationRequestContext, _
messageBusName As String, _
serializableObjects As Object(), _
throwOnMissingPublisher As Boolean _
)
public void Publish(
TeamFoundationRequestContext requestContext,
string messageBusName,
Object[] serializableObjects,
bool throwOnMissingPublisher
)
public:
virtual void Publish(
TeamFoundationRequestContext^ requestContext,
String^ messageBusName,
array<Object^>^ serializableObjects,
bool throwOnMissingPublisher
) sealed
abstract Publish :
requestContext:TeamFoundationRequestContext *
messageBusName:string *
serializableObjects:Object[] *
throwOnMissingPublisher:bool -> unit
override Publish :
requestContext:TeamFoundationRequestContext *
messageBusName:string *
serializableObjects:Object[] *
throwOnMissingPublisher:bool -> unit
public final 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[]The objects to put onto the bus. IMPORTANT: If you change the shape of the objects that you push onto the bus then those changes must be Version Tolerant with regards to Serialization. Messages that were serialized with one version of the class/framework may be deserialized by a completely different version.
- throwOnMissingPublisher
Type: System.Boolean
Implements
IMessageProvider.Publish(TeamFoundationRequestContext, String, array<Object[], Boolean)
Remarks
See https://msdn.microsoft.com/en-US/library/ms229752.aspx for more information on .NET Version Tolerant Serialization.
.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.