【问题标题】:WCF Sessions in MonoMono 中的 WCF 会话
【发布时间】:2011-12-22 13:29:11
【问题描述】:

我应该选择哪个绑定来启用会话以下是我的服务接口:

[ServiceContract(SessionMode=SessionMode.Required)]
public interface IAkessaAbstractionService
{

    [OperationContract(IsInitiating=true)]
    LoginDTO Login(string Username, byte[] Password, bool ForcefulLogin);

    [OperationContract(IsInitiating=false)]
    string[] names();

}

当我使用 WSHttpBinding() 因为 basicHttpBinding 不支持会话时,我收到以下错误:

完成频道验收时出现异常。 System.NotSupportedException:不支持通道类型 System.ServiceModel.Channels.IReplySessionChannel 在等等等等……

当我使用 WSDualHttpBinding() 时,它会抛出以下错误:

System.NotImplementedException:请求的功能未实现。 在 System.ServiceModel.WSDualHttpBinding.CreateBindingElements () [0x00000] 在 :0 在 System.ServiceModel.Channels.CustomBinding..ctor (System.ServiceModel.Channels.Binding 绑定) [0x00000] 在 :0

我使用的是单声道版本 2.10.2。

【问题讨论】:

    标签: c# mono


    【解决方案1】:

    目前不支持单声道 WCF 会话。

    【讨论】:

      【解决方案2】:

      我不知道您的详细需求...

      但是为了做很多可靠的 RPC,我使用标准的 .NET Remoting

      我根据以下原则设计了系统: - 服务器激活对象 - 单次通话(无单例) - 基于 TCP 的 BinaryFormatter(在我的情况下,我已经完全控制了网络设置

      我在 Ubuntu 10.04 LTS 中成功使用了它。

      问候, 贾科莫

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2010-11-05
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多