Delen 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, _
    subscription As MessageBusSubscriptionInfo, _
    action As Action(Of TeamFoundationRequestContext, IMessage), _
    exceptionHandler As Func(Of Exception, String, Boolean) _
)
public void Subscribe(
    TeamFoundationRequestContext requestContext,
    MessageBusSubscriptionInfo subscription,
    Action<TeamFoundationRequestContext, IMessage> action,
    Func<Exception, string, bool> exceptionHandler
)
public:
virtual void Subscribe(
    TeamFoundationRequestContext^ requestContext, 
    MessageBusSubscriptionInfo^ subscription, 
    Action<TeamFoundationRequestContext^, IMessage^>^ action, 
    Func<Exception^, String^, bool>^ exceptionHandler
) sealed
abstract Subscribe : 
        requestContext:TeamFoundationRequestContext * 
        subscription:MessageBusSubscriptionInfo * 
        action:Action<TeamFoundationRequestContext, IMessage> * 
        exceptionHandler:Func<Exception, string, bool> -> unit  
override Subscribe : 
        requestContext:TeamFoundationRequestContext * 
        subscription:MessageBusSubscriptionInfo * 
        action:Action<TeamFoundationRequestContext, IMessage> * 
        exceptionHandler:Func<Exception, string, bool> -> unit
public final function Subscribe(
    requestContext : TeamFoundationRequestContext, 
    subscription : MessageBusSubscriptionInfo, 
    action : Action<TeamFoundationRequestContext, IMessage>, 
    exceptionHandler : Func<Exception, String, boolean>
)

Parameters

Implements

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

.NET Framework Security

See Also

Reference

TeamFoundationMessageBusService Class

Microsoft.TeamFoundation.Framework.Server Namespace