Determine if WCF ServiceHost supports active connections

I have a WCF ServiceHost , and I would like to determine if there are any clients with it.

It is inside the console application, if that matters.

Or, if there are events when the client connects or disconnects, this can be useful as well.

+3
source share
1 answer

The best practice for WCF is to provide call services - so you really don't have “connected clients” —the client calls the method call and then leaves again.

WCF ServiceHost usually does not have clients that are connected for a longer period of time.

, WCF - "Dublin" - . Microsoft Dublin .NET 4.0 VS2010 (, 2010 ).

, - , , . - - ( NetTcpBinding) , , , .

+2

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


All Articles