duplex-channel

WCF - Closing a duplex ServiceHost blocks for CloseTimeout duration if closed when client(s) connected

I have a Windows Service that hosts three different duplex WCF channels. Clients can connect to have updates sent to them via their callback contract. Essentially there are three pub-sub channels. This service takes a long time to bounce when clients are connected. The call to ServiceHost.Close takes 10 seconds to return (so the serv...

WCF Duplex Channel: Check if callback channel is still available

Hi guys. I have the following problem. I'm writing chat software. The client/server mechanism is based on DualHttpBinding of WCF. This means that if a user sends a message, all clients that are in the room where the message has been sent, are notified by the server. I want to ensure, that if a client's application crashes (whyever), th...

.NET WCF: Proxy lifecycle management with DuplexChannelFactory

I'm a little unclear on what the proper way is to use DuplexChannelFactory in WCF. Following from convention, I have explicit Connect/Disconnect methods on my service contract to aid in management of the proxies, but I'm a little unclear as to what the client should be doing. Here's my impression of how things work. When initiating the ...

WCF service interface exchange

Hi I want to avoid the duplex Chanel in WCF and create callback service on client, pass the client address to server so the server can call the client any time. (maybe different binding etc.) How can I pass the callback interface to the client? (I still want the server to manage this interface and to avoid put it in seperate DLL. Any ...

serverPollTimeout configuration for HttpPollingDuplex

Hi Guys, I am writing card game using Silverlight and HttpPollingDuplex. I have 4 seperate http duplex services, which can be called from my game (silverlight client) 1. ChatService 2. AuthService 3. LobbyService 4. GameService After I host the game under IIS 7.5 I note with Fiddler that Silverlight client do polling requests sequ...

WCF: How to diagnose faulted channels?

I'm working on shipping in a change for my lab that will hopefully help diagnose some weird channel-faulting weirdness we're seeing. There's a test application that uses DuplexChannelFactory to connect to a couple windows services, and for some reason the channels on this test application seem to be faulting quite a bit. I have plans to ...