環境:
.NETCore を使用する UWP アプリケーション、「Win 10 for Mobile - 10.0.10240.0」
シナリオ:
netTcpBinding 二重 wcf サービスの使用を試みます。
説明:
DuplexChannelFactory からクラスを派生させ、その ctor(InstanceContext, Binding, EndpointAddress) を呼び出そうとすると、PlatformNotSupportedException がスローされます。
または、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)