您需要在Team Foundation Server中拥有哪些权限才能添加SOAP事件处理程序

时间:2009-02-10 14:31:47

标签: soap tfs

我希望用户自己做,但我不希望每个人都成为管理员。

2 个答案:

答案 0 :(得分:1)

用户确实需要成为TFS管理员才能添加SOAP事件处理程序。要解决此问题,您可以编写自己的Web服务来模拟TFS管理员并让调用者注册其处理程序。

Here's a URL that has code similar to this.

答案 1 :(得分:0)

''' <summary>
''' This is the service contract for integrating with the Team Foundation Server notification events.
''' </summary>
''' <remarks></remarks>
<ServiceContract(Namespace:="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03")> _
Public Interface INotification

    ''' <summary>
    ''' The Notify method if fired whenever a subscribed event arrives.
    ''' </summary>
    ''' <param name="eventXml">This XML defines the data that was changed on the event.</param>
    ''' <param name="tfsIdentityXml">This XML identifies the Team Foundation Server the event came from.</param>
    ''' <param name="SubscriptionInfo">Information about the subscriber</param>
    ''' <remarks></remarks>
    <OperationContract( _
                    Action:="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03/Notify", _
                    ReplyAction:="*" _
                    )> _
    <XmlSerializerFormat( _
                    Style:=OperationFormatStyle.Document _
                    )> _
    Sub Notify(ByVal eventXml As String, ByVal tfsIdentityXml As String, ByVal SubscriptionInfo As SubscriptionInfo)

End Interface