【问题标题】:EndPointDispatcher and Attributes set on the service or service contract在服务或服务合同上设置的 EndPointDispatcher 和 Attributes
【发布时间】:2010-04-13 15:23:12
【问题描述】:

我正在使用 WCF 和 IServiceBehaviors,并添加 EndPointDispatchers。

我想检查的是,在 EndPointDispatcher 上是否有任何方法可以检查服务或服务合同上设置了哪些属性?

这样做的原因是,如果 Service 具有属性,则将添加新的 Inspector,否则将被忽略。

【问题讨论】:

    标签: wcf attributes endpoints iservicebehaviors


    【解决方案1】:

    我终于找到了一种方法,通过在程序集上使用反射,并在程序集中查找属性

    【讨论】:

      猜你喜欢
      • 2015-10-06
      • 2014-10-10
      • 1970-01-01
      • 2011-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-10
      • 2020-08-10
      相关资源
      最近更新 更多