Hosting and using a WCF service from the same process

Can you become a WCF service client from a process hosting a WCF service? I tried to create separate application domains as part of a single process and still have not succeeded. The service is confirmed to be available on Http, Net.TCP and Net.Pipe.

Thanks for the help!

Nat

+3
source share
4 answers

I had the same problem even when using InProcFactory from ServiceModelEx.

It turns out, as described here , you need to set the ServiceBehavior not UseSynchronizationContext.

[ServiceBehavior(UseSynchronizationContext = false)]
public class MyService : IMyService {}
+3
source

IDesign ServiceModelEx, WCF.

InProcFactory, Net.Pipe .

ServiceModelEx IDesign.net

+2

. WCF .

+1

, , WCF . , , , -. , - , ... , . , .

, , -. . , .

- - Firestrand , . Windows WPF, . Windows - , , WCF, DLL, UI "", Windows . , "" , .. , . UI DLL , Windows, DLL, , , . , , - , .

+1
source

Source: https://habr.com/ru/post/1726551/


All Articles