Share via


SModelBusService Interface

Namespace:  Microsoft.VisualStudio.Data.Tools.Package.ModelBus
Assembly:  Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)

Syntax

'Declaration
<GuidAttribute("0004ab50-147d-43e9-8972-b023db43eb15")> _
Public Interface SModelBusService _
    Inherits IModelBusService
'Usage
Dim instance As SModelBusService
[GuidAttribute("0004ab50-147d-43e9-8972-b023db43eb15")]
public interface SModelBusService : IModelBusService
[GuidAttribute(L"0004ab50-147d-43e9-8972-b023db43eb15")]
public interface class SModelBusService : IModelBusService
[<GuidAttribute("0004ab50-147d-43e9-8972-b023db43eb15")>]
type SModelBusService =  
    interface
        interface IModelBusService
    end
public interface SModelBusService extends IModelBusService

The SModelBusService type exposes the following members.

Methods

  Name Description
Public method ChangePublisherTopic Changes the topic a publisher uses. This will also update all existing subscribers so that they are listening to the new topic. (Inherited from IModelBusService.)
Public method DemandMessage Pulls the latest message for a particular topic (Inherited from IModelBusService.)
Public method DoesTopicHaveSubscribers Determines if any subscribers are subscribing to a particular topic. (Inherited from IModelBusService.)
Public method PublishingMessage Notifies subscribers that a message is about to be published The given publishing cookie is validated against the message topic. (Inherited from IModelBusService.)
Public method PublishMessage Publishes a message composed of a topic and content to all subscribers of the topic. The given publishing cookie is validated against the message topic. (Inherited from IModelBusService.)
Public method RegisterPublisher Registers a publisher so that subscribers can pull messages if needed. Publishers do not need to be registered in order to publish messages. (Inherited from IModelBusService.)
Public method RegisterSubscriber Registers a subscriber for a particular topic. The subscriber will get notified when a publisher sends out notification that a message is ready for consumption. (Inherited from IModelBusService.)
Public method UnregisterPublisher(IModelBusPublisher) Unregisters a publisher from all publishing topics. This is useful in the case where the caller cannot get access to the topic. Note that even if a publisher is unregistered, a message may be force-published (OnDemandMessage) if the same publisher was registered immediately beforehand. (Inherited from IModelBusService.)
Public method UnregisterPublisher(IModelBusPublisher, ModelBusMessageTopic) Unregisters a publisher from a particular topic. Note that even if a publisher is unregistered, a message may be force-published (OnDemandMessage) if the same publisher was registered immediately beforehand. (Inherited from IModelBusService.)
Public method UnregisterSubscriber(IModelBusSubscriber) Unregisters a subscriber from all topics. Note that even if a subscriber is unregistered, they may receive (AcceptMessage) messages if the message was published immediately before unregistering. (Inherited from IModelBusService.)
Public method UnregisterSubscriber(IModelBusSubscriber, ModelBusMessageTopic) Unregisters a subscriber from a particular topic. Note that even if a subscriber is unregistered, they may receive (AcceptMessage) messages if the message was published immediately before unregistering. (Inherited from IModelBusService.)

Top

See Also

Reference

Microsoft.VisualStudio.Data.Tools.Package.ModelBus Namespace