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, _
messageBusName As String, _
action As Action(Of TeamFoundationRequestContext, IMessage), _
exceptionHandler As Action(Of Exception) _
)
void Subscribe(
TeamFoundationRequestContext requestContext,
string messageBusName,
Action<TeamFoundationRequestContext, IMessage> action,
Action<Exception> exceptionHandler
)
void Subscribe(
TeamFoundationRequestContext^ requestContext,
String^ messageBusName,
Action<TeamFoundationRequestContext^, IMessage^>^ action,
Action<Exception^>^ exceptionHandler
)
abstract Subscribe :
requestContext:TeamFoundationRequestContext *
messageBusName:string *
action:Action<TeamFoundationRequestContext, IMessage> *
exceptionHandler:Action<Exception> -> unit
function Subscribe(
requestContext : TeamFoundationRequestContext,
messageBusName : String,
action : Action<TeamFoundationRequestContext, IMessage>,
exceptionHandler : Action<Exception>
)
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- messageBusName
Type: System.String
- action
Type: System.Action<TeamFoundationRequestContext, IMessage>
- exceptionHandler
Type: System.Action<Exception>
.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.