0

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

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by jbrock31
0

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#

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.