Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Enumerating client connections on WCF server

 
 
Old 01-18-2007   #1 (permalink)
Mike Scott


 
 

Enumerating client connections on WCF server

Is there a way to enumerate connections to a WCF server?

I have a scenario where I'd like some code on the server to be able to get a
list of all the connected clients, e.g. to display which clients are
connected. But more than that, I'd like to be able to add custom state
information to connected client channels.

I've looked at the IExtensibleObject<T> but it's not clear from the channel
extensibility example how this should be used.

Any suggestions anyone?

Cheers,

MikeS.



My System SpecsSystem Spec
Old 01-21-2007   #2 (permalink)
Arkady Frenkel


 
 

Re: Enumerating client connections on WCF server

Look at
http://msdn2.microsoft.com/en-us/lib...endpoints.aspx
you can enumerate endpoins with
ServiceDescription desc = serviceHost.Description;
foreach (ServiceEndpoint endpoint in desc.Endpoints)
{
// do here something
}
Arkady

"Mike Scott" <someone@microsoft.com> wrote in message
news:uc95AmxOHHA.1248@TK2MSFTNGP03.phx.gbl...
> Is there a way to enumerate connections to a WCF server?
>
> I have a scenario where I'd like some code on the server to be able to get
> a list of all the connected clients, e.g. to display which clients are
> connected. But more than that, I'd like to be able to add custom state
> information to connected client channels.
>
> I've looked at the IExtensibleObject<T> but it's not clear from the
> channel extensibility example how this should be used.
>
> Any suggestions anyone?
>
> Cheers,
>
> MikeS.
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
How can I check status of Terminal Services connections on remote server? PowerShell
Joyfax Server - Client/server-based fax software allows you to sendand receive fax anywhere Vista print fax & scan
Vista DNS Server Order for PPP Connections Vista networking & sharing
Server Won't Accept Connections on Vista machine Vista General
Network Connections, SMTP Server, Mail Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46