无法订阅CheckinEvent
问题描述:
我想订阅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
我有我添加到源代码控制已经是一个解决方案,而我签一些文件,断点没有击中。 我在做什么错?
答
您确定您的订阅有效吗?例如尝试记录有关输入参数eventXML的一些信息。因为,您需要确定您的订阅是否有效。如果是这样,你可以运行你的SVC项目并在其上附加一个调试器。调试器应该如何打破你的断点。