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