Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

Changing State in Event/Delegate

Hi,

I am trying to create a solution that will keep track of the changes
occurring in:

BeginInvoke, Invoke, and EndEnvoke of a delegate/event

I could associate then to it a OnChangingState event handler which in turn
will keep track of changes in its state using an enumerator called STATE.

For instance as in:

public enum STATE
{
  Begin = 0,
  BeforeStart,
  Start,
  Started,
  AfterStart,
  BeforeStop,
  Stop,
  AfterStop,
  Stopped,
  BeforeError,
  Error,
  AfterError,
  End
}

Any insights? Should I use a Timer with my delegates? I am using .NET 2.0

Thanks,

Yama

0
yamazed
Asked:
yamazed
1 Solution
 
devsolnsCommented:
I would say a be a little more descriptive as to what your trying to accomplish to get the best answer...
0
 
yamazedAuthor Commented:
Dear Moderator,

Please cancel points... I have found what I was looking for after reading the following article: http://msdn2.microsoft.com/en-US/library/bz33kx67(VS.80).aspx

Yama
0
 
GranModCommented:
PAQed with points refunded (250)

GranMod
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now