How would I setup an event in my class to be automatically called. So, Im using a ChannelFactory object, which has a few events associated with it. Closed, Closing, Faulted, Opened, Opening. I want to do something specific when these events happen, but I guess im lost on how to automatically enter that event in my own class when it actually happens.

Thanks

Have you created the events in your class? When you are creating custom events, you will have to call the events when the action occurs. Give us your code and we can be of better help. In the mean time, take a look at the following link as it explains what you are looking for you.

Custom Events in C#

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.