【问题标题】:How can I retrieve the instanceId of a durable wcf service in a portable class library?如何在可移植类库中检索持久 wcf 服务的 instanceId?
【发布时间】:2012-10-19 07:28:20
【问题描述】:

我尝试使用可移植.net assembly 中的辅助类从持久WCF service 获取instanceId。 要检索 id,我需要调用:

IClientChannel.GetProperty<IContextManager>()...

IContextManager 不包含可移植类库中: 如何在可移植类库中检索 instanceId?

【问题讨论】:

    标签: c# .net wcf portable-class-library


    【解决方案1】:

    尝试添加对 System.ServiceModel 的引用。这就是该接口所在的位置。

    【讨论】:

      猜你喜欢
      • 2017-05-31
      • 1970-01-01
      • 1970-01-01
      • 2015-01-18
      • 2018-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多