public BaseCounterState(ILimitCounterStateFactory stateFactory, TimeSpan lifeSpan) { this.stateFactory = stateFactory; this.stateStart = DateTime.Now; this.lifeSpan = lifeSpan; }
public SuspendedState(ILimitCounterStateFactory statefactory, int limit, TimeSpan suspendTime) : base(statefactory, suspendTime) { this.limit = limit; this.statefactory = statefactory; }
public ValidState(ILimitCounterStateFactory statefactory, int limit, TimeSpan allowedTime) : base(statefactory, allowedTime) { this.limit = limit; }