Share via


TeamFoundationMessageBusService.Subscribe Method

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

Syntax

'Declaration
Public Sub Subscribe ( _
    requestContext As TeamFoundationRequestContext, _
    messageBusName As String, _
    action As Action(Of TeamFoundationRequestContext, IMessage), _
    exceptionHandler As Action(Of Exception) _
)
public void Subscribe(
    TeamFoundationRequestContext requestContext,
    string messageBusName,
    Action<TeamFoundationRequestContext, IMessage> action,
    Action<Exception> exceptionHandler
)
public:
virtual void Subscribe(
    TeamFoundationRequestContext^ requestContext, 
    String^ messageBusName, 
    Action<TeamFoundationRequestContext^, IMessage^>^ action, 
    Action<Exception^>^ exceptionHandler
) sealed
abstract Subscribe : 
        requestContext:TeamFoundationRequestContext * 
        messageBusName:string * 
        action:Action<TeamFoundationRequestContext, IMessage> * 
        exceptionHandler:Action<Exception> -> unit  
override Subscribe : 
        requestContext:TeamFoundationRequestContext * 
        messageBusName:string * 
        action:Action<TeamFoundationRequestContext, IMessage> * 
        exceptionHandler:Action<Exception> -> unit
public final function Subscribe(
    requestContext : TeamFoundationRequestContext, 
    messageBusName : String, 
    action : Action<TeamFoundationRequestContext, IMessage>, 
    exceptionHandler : Action<Exception>
)

Parameters

Implements

IMessageProvider.Subscribe(TeamFoundationRequestContext, String, Action<TeamFoundationRequestContext, IMessage>, Action<Exception>)

.NET Framework Security

See Also

Reference

TeamFoundationMessageBusService Class

Microsoft.TeamFoundation.Framework.Server Namespace