On May 7, 11:51 am, Nahid <nahid...@xxxxxx> wrote:
Quote:
> hi,
> try following way
>
> YourServiceCF = new ChannelFactory<IYourService>
> (...........................);
> IYourService client = YourServiceCF .CreateChannel();
> ((ICommunicationObject)client).Faulted += new
> EventHandler(Faulted);
> or
> ((ICommunicationObject)client).Closed += new
> EventHandler(Faulted);
>
> hope this help.
> thanks
> nahidhttp://nahidulkibria.blogspot.com/
>
> On May 2, 8:40 pm, "sebastian....@xxxxxx"
>
> <sebastian....@xxxxxx> wrote: Quote:
> > Hello Newsgroup,
> Quote:
> > I wonder how one would write wcf proxy code that is being notified
> > when the connected service channel is being closed (service process
> > ends for example).
> Quote:
> > I was subscribing the Channels and the Duplex Channels Closing and
> > Closed events but these have never been fired.
> Quote:
> > Any idea on that?
> Quote:
> > Thanks for you help!
> Thanks,
that worked as required.
Best Regards, Sebastian