Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6743151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:55:38+00:00 2026-05-26T11:55:38+00:00

I am creating channel everytime before performing an operation on service using ChannelFactory.CreateChannel(). At

  • 0

I am creating channel everytime before performing an operation on service using ChannelFactory.CreateChannel(). At the end of the operation I will close the channel or abort it if there are any exceptions.

Since I am creating a channel each time, do I have to listen to “Faulted” events.

Btw, why channelFactory has Faulted event, when all the stuff is done by the channel.

Or – will be it raised when any of the channels created by this factory faulted?

Thanks in advance,
Dreamer!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:55:39+00:00Added an answer on May 26, 2026 at 11:55 am

    The only reason I would listen to the Faulted event is if I wanted to do something particular if the event occurs (other than aborting the channel). I can’t, off the top of my head, think of a reason to use it – but that doesn’t mean there isn’t one.

    In your case, if you’re aborting the channel when an error occurs, then you’re fine – you don’t ned to handle the Faulted event.

    FactoryChannel<T> implements ICommunicationObject, which defines a faulted event. MSDN says “Defines the contract for the basic state machine for all communication-oriented objects in the system, including channels, the channel managers, factories, listeners, and dispatchers, and service hosts.”

    FactoryChannel<T>.CreateChannel returns a type of IChannel, which also implements ICommunicationObject.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's lots of material explaining why using svcutil.exe (or 'add service reference') is bad
I'm creating Silverlight proxy client for WCF service using async pattern: public class ProductService
Creating a server-side socket will fail if I'm trying to use the same port
Is it possible to write to Netty channel without creating unnecessary ChannelFuture? (Without generating
I'm currently creating a website a little bit like Digg.com. There are different category
I'm creating an RSS feed for a site. I am using SimpleXML to create
I'm creating a small server using java.nio , but when trying to stress test
I am creating a wcf service, my wcf service now is hosted in a
I have a Rails blog using friendly_id for creating custom urls. The blog has
I am creating a widget that will be installed across different sites. The widget

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.