TeamFoundationMessageBusService.Subscribe 方法
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
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
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- messageBusName
型別:System.String
- action
型別:System.Action<TeamFoundationRequestContext, IMessage>
- exceptionHandler
型別:System.Action<Exception>
實作
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。