Link to home
Start Free TrialLog in
Avatar of yamazed
yamazed

asked on

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

Avatar of devsolns
devsolns

I would say a be a little more descriptive as to what your trying to accomplish to get the best answer...
Avatar of yamazed

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial