我想从ip camera获取事件我的步骤是:
使用NotificationProducerClient发送一个subscripbe请求:
using (var client = new NotificationProducerClient(Bind, new EndpointAddress(EventsServiceAddress)))
{
client.ClientCredentials.UserName.UserName = "un";
client.ClientCredentials.UserName.Password = "pw";
var subScribe = new Subscribe() {
ConsumerReference = new EndpointReferenceType1 {
Address = new AttributedURIType { Value = "My service URL" },
},
InitialTerminationTime = "PT1M"
};
subRes = client.Subscribe(subScribe);
}
但订阅后我无法在我的Service runnig实例中收到任何通知。
我看到这里有一些关于这个话题的问题,但没有人回答 希望得到答案......
由于