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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- subscription
Type: Microsoft.TeamFoundation.Framework.Server.MessageBusSubscriptionInfo
- action
Type: System.Action<TeamFoundationRequestContext, IMessage>
- exceptionHandler
Type: System.Func<Exception, String, Boolean>
Implements
.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.