IMessageProvider.Subscribe Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Sub Subscribe ( _
requestContext As TeamFoundationRequestContext, _
subscription As MessageBusSubscriptionInfo, _
action As Action(Of TeamFoundationRequestContext, IMessage), _
exceptionHandler As Func(Of Exception, String, Boolean) _
)
void Subscribe(
TeamFoundationRequestContext requestContext,
MessageBusSubscriptionInfo subscription,
Action<TeamFoundationRequestContext, IMessage> action,
Func<Exception, string, bool> exceptionHandler
)
void Subscribe(
TeamFoundationRequestContext^ requestContext,
MessageBusSubscriptionInfo^ subscription,
Action<TeamFoundationRequestContext^, IMessage^>^ action,
Func<Exception^, String^, bool>^ exceptionHandler
)
abstract Subscribe :
requestContext:TeamFoundationRequestContext *
subscription:MessageBusSubscriptionInfo *
action:Action<TeamFoundationRequestContext, IMessage> *
exceptionHandler:Func<Exception, string, bool> -> unit
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>
.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.