#region --------------- Copyright Dresser Wayne Pignone -------------
/*
* $Log: /Wrk/WayneLibraries/Wrk/StateEngine/TimerEvent.cs $
*
* 2 08-03-18 11:09 roger.månsson
* Each timer does not have it's own real timer anymore. Instead there are
* a pool of timers in the StateMachine that can be shared among the
* timers in the same state machine.
*/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
namespace Wayne.Lib.StateEngine
{
///
/// Event class for the Timer events.
///
public class TimerEvent : StateEngineEvent
{
#region Fields
private object userToken;
#endregion
#region Construction
///
/// Initializes a new instance of the TimerEvent. This event should only be created inside the
/// state machine, and does therefore not have any public constructor.
///
///
///
internal TimerEvent(object userToken, object eventType)
: base(eventType)
{
this.userToken = userToken;
}
#endregion
#region Properties
///
/// The UserToken of the Timer.
///
public object UserToken
{
get
{
return userToken;
}
}
#endregion
}
}