gpt4 book ai didi

wcf - 订阅 TFS 事件和 WCF

转载 作者:行者123 更新时间:2023-12-01 09:39:38 25 4
gpt4 key购买 nike

很抱歉问了一个我不太了解的问题,但我一直在努力解决这个问题。

所以,我有一个托管在 IIS 上的 WCF 服务,它似乎正在工作,以至于我可以通过转到 http://servername/MyService.svc 在网络上“看到”它。在浏览器中。

.svc 看起来像:

<% @ServiceHost Service="Foo.Bar" %>

相关代码如下:

    [ServiceContract(Namespace = "http://schemas.microsoft.com/TeamFoundation/2005/06Services/Notification/03")]
public interface IBar
{
[OperationContract(Action = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03/Notify", ReplyAction = "*")]
[XmlSerializerFormat(Style = OperationFormatStyle.Document)]
void Notify(string eventXml, string tfsIdentityXml);
}

和:

public class Bar : IBar
{
public void Notify(string eventXml, string tfsIdentityXml)
{
// Just some test output to see if it worked
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "tfs.txt");
File.WriteAllText(path, tfsIdentityXml + eventXml);
}
}

这一切都已构建完毕,随后的 .dll 将放入 IIS 站点根目录中的 bin 目录中。

我现在想通过 bissubscribe.exe(或类似方法)订阅 TFS checkin 事件。我尝试做类似的事情:

bissubscribe /eventType CheckinEvent 
/address http://servername/MyService.svc
/deliveryType Soap
/server mytfsserver

但什么都没有;它甚至看起来都没有日志事件。所以请记住,我对 WCF 一无所知,我做错了什么?我想 address 参数是一回事;我不应该将它指向 .svc 吗?

最佳答案

关于wcf - 订阅 TFS 事件和 WCF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1891773/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com