Retrieving a list of connected clients for a wcf service

How can I list any location identifier for all connected clients for servicehost? I use duplex connection for long calculations. Service host is singleton.

I can figure out (in .net 3.5) the ip of the calling client, but I'm not sure how to get the ip of all connected clients.

+5
source share
2 answers

By default, WCF encourages the use of per-call services, for example. your client requests, the request is processed, and then the client disconnects again.

WCF - " ", ( ).

WCF Windows, .

+2

, - , IServiceBehavior + IDispatchMessageInspector, RemoteClientEnpointMessageProperty , impl IP- , /.

+1

All Articles