C# 双工服务引用将接口类型转换为system.object类型

C# 双工服务引用将接口类型转换为system.object类型,c#,wcf,C#,Wcf,以下是我的wcf双工服务回调接口: public interface ICallback { [OperationContract(IsOneWay = true)] void SendClientCallback(CallbackMessage callbackMessage); [OperationContract] void GetTemplateList(ref List<ISpecimenTemplateDescriptor> templa

以下是我的wcf双工服务回调接口:

public interface ICallback
{
    [OperationContract(IsOneWay = true)]
    void SendClientCallback(CallbackMessage callbackMessage);

    [OperationContract]
    void GetTemplateList(ref List<ISpecimenTemplateDescriptor> templateDescriptors, IDrawerLayout drawerLayout);
}
以下是我的服务行为:

[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Reentrant, UseSynchronizationContext = false)]
public class WcfService : IWcfService
{
    ......
}

提前谢谢你的帮助

嗯,我到处找。最后,我恢复了使用可序列化的具体类,而不是尝试在服务引用中使用接口

[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(ICallback))]
public interface IWcfService
{
      .....
}
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Reentrant, UseSynchronizationContext = false)]
public class WcfService : IWcfService
{
    ......
}