【问题标题】:Problem with WCF custom behavior used in the silverlight clientsilverlight 客户端中使用的 WCF 自定义行为问题
【发布时间】:2010-11-02 17:26:33
【问题描述】:

为了将文化信息从客户端传递到 WCF 服务,我使用自定义检查器创建了一个自定义行为。检查器类实现IDispatchMessageInspectorIClientMessageInspector

我的客户是 silverlight 应用程序。现在我正面临IDispatchMessageInspector 的问题,因为它在System.ServiceModel.Dispatcher.dll 中不可用,不能作为Silverlight 4 项目的程序集引用添加。

有人可以帮帮我吗?如何处理将消息从 SILVERLIGHT 发送到 wcf 的自定义行为。 ?

【问题讨论】:

    标签: wcf silverlight-4.0


    【解决方案1】:

    IClientMessageInspector 需要在客户端(本例中为silverlight)端实现和使用,而IDispatchMessageInspector 需要在服务端使用。

    以下帖子真的很有帮助:

    Automatic Culture Flowing with WCF by using Custom Behaviour

    Automate passing valuable information in WCF headers

    Processing custom WCF header values at server-side

    【讨论】:

      猜你喜欢
      • 2012-11-18
      • 1970-01-01
      • 1970-01-01
      • 2011-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多