DuplexChannelFactory / DuplexClientBase构造函数抛出PlatformNotSupportedException

时间:2015-11-12 13:46:50

标签: wcf uwp .net-core windows-10-universal

环境:
使用.NETCore的UWP应用程序," Win 10 for Mobile - 10.0.10240.0"
情景:
尝试使用netTcpBinding双工wcf服务 说明
有一个类派生自DuplexChannelFactory,当我尝试调用它的ctor(InstanceContext,Binding,EndpointAddress)时,抛出PlatformNotSupportedException。
或者,我直接尝试了#34;添加服务参考"从VS2015引用中,在使用生成的客户端时,我得到了相同的结果,堆栈跟踪在快照映像中,所以我需要在这里手动键入部分内容:

at System.ServiceModel.ReflectionExtensions.GetInterfaceMap(Type type, Type interfaceType)
 at System.ServiceModel.Description.TypeLoader.GetIOperationBehaviorAttributesFromType
 ....
 at System.ServiceModel.ChannelFactory'1.ReflectOnCallbackInstance
 at System.ServiceModel.ChannelFactory'1.CreateDescription
 at System.ServiceModel.ChannelFactory.InitializeEndpoint
 at System.ServiceModel.DuplexChannelFactory'1..ctor
 at System.ServiceModel.ClientBase'1..ctor
 at System.ServiceModel.DuplexClientBase'1 .. ctor(InstanceContext, Binding, EndpointAddress)

0 个答案:

没有答案