Partager via


IMessageProvider Interface

Interface for implementation of message bus.

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

Syntax

'Declaration
<InheritedExportAttribute> _
Public Interface IMessageProvider _
    Inherits ITeamFoundationService
[InheritedExportAttribute]
public interface IMessageProvider : ITeamFoundationService
[InheritedExportAttribute]
public interface class IMessageProvider : ITeamFoundationService
[<InheritedExportAttribute>]
type IMessageProvider =  
    interface 
        interface ITeamFoundationService 
    end
public interface IMessageProvider extends ITeamFoundationService

The IMessageProvider type exposes the following members.

Methods

  Name Description
Public method CreatePublisher Create a new publisher with the given name.
Public method CreateSubscriber(TeamFoundationRequestContext, String) Create a new subscription for a given message bus. The name of the subscription will be allocated by the message bus and returned.
Public method CreateSubscriber(TeamFoundationRequestContext, String, String) Create a new named subscription for a given message bus.
Public method DeletePublisher Delete a given publisher if it exists.
Public method DeleteSubscriber
Public method FixMessageQueueMappings
Public method Publish Publish messages to a message bus.
Public method ServiceEnd ServiceEnd is called when the Host is being Shutdown and this service should free all resources it is holding onto. (Inherited from ITeamFoundationService.)
Public method ServiceStart ServiceStart is called when the service is initialized. If the service is intialized asynchronously it must implement Service_Ready which is used to determine when the service is ready for users to access it. (Inherited from ITeamFoundationService.)
Public method Subscribe
Public method Unsubscribe Unsubscribe from the specified message bus

Top

Remarks

Any implementor of the IMessageProvider interface needs to provide: - one-time, - in-order, - secure - sub-5 second - guaranteed delivery of messages.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace