Detecting faults when using ChannelFactory
I'm trying to detect a faulted channel from the client side without any success. I'm using ChannelFactory<>.CreateChannel(), not a generated proxy. I've tried to handle the Faulted event of the ChannelFactory, but it is never raised. The transparent proxy that is returned from the CreateChannel method doesn't have any events defined.
So the question is, how does one detect a faulted (or otherwise broken) channel when using ChannelFactory<>.CreateChannel()?
Thanks.
Bruce Bukovics
Author of .NET 2.0 Interoperability Recipes
http://www.apress.com/book/bookDisplay.html?bID=10116
Hi. How can I convert
((IChannel)c).Faulted += new EventHandler(Channel_Faulted);
in VB.Net?
I tried ctype(c,IChannel). but it doesn't have any events, just a State property and some methods BeginOpen, BeginClose...
What am I doing wrong?
Thanx