2013-03-10 123 views
0


我想訂閱CheckinEvent,出於某種原因,我的Notify方法沒有被調用。 這是我的合同 -無法訂閱CheckinEvent

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Runtime.Serialization; 
using System.ServiceModel; 
using System.ServiceModel.Web; 
using System.Text; 
namespace TFSubscriber 
{ 
    [ServiceContract(Namespace = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03")] 
    public interface IRollupService 
    { 

     [OperationContract(Action = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03/Notify")] 
     [XmlSerializerFormat(Style = OperationFormatStyle.Document)] 
     void Notify(string eventXml, string tfsIdentityXml); 

    } 
} 

我的實現很簡單,爲空的方法。我在我的Notify方法中放置了一個斷點,它不被調用。

該如何訂閱CheckinEvent -

C:\Program Files\Microsoft Team Foundation Server2010\Tools>bissubscribe.exe /eventType CheckInEvent /address http://localhost:4556/Rollupservice.svc /collection http://localhost:8080/tfs/defaultcollection 

我有我添加到源代碼控制已經是一個解決方案,而我籤一些文件,斷點沒有擊中。 我在做什麼錯?

回答

0

您確定您的訂閱有效嗎?例如嘗試記錄有關輸入參數eventXML的一些信息。因爲,您需要確定您的訂閱是否有效。如果是這樣,你可以運行你的SVC項目並在其上附加一個調試器。調試器應該如何打破你的斷點。