public NewsCrawlerState(MachineContext context, IState prev) : base(context) { this.prev = prev; this._timer = new Util.StaticTimer(TimeSpan.FromMinutes(3)); InitRssFeed(); }
public NewsWaitingState(MachineContext context, double time) : base(context) { this.timer = new Util.StaticTimer(context.RetryTimeout); this.queueTime = new Util.StaticTimer(TimeSpan.FromMilliseconds(time)); this.retriesUsed = 0; }
public NewsTransferState(MachineContext context, IState prev) : base(context) { this.prev = prev; this._timer = new Util.StaticTimer(TimeSpan.FromSeconds(8)); this.queueMsg = new Queue<NewsMessage>(); }
public LoggingState(IState decoratee, MachineContext context) { this.decoratee = decoratee; this.context = context; }
public NewsBeginState(MachineContext context) : base(context) { waitingForOverlayAnimationCompleted = new Util.StaticTimer(TimeSpan.FromSeconds(1)); }
public NewsIdleState(MachineContext context) : base(context) { }
public NewsEndState(MachineContext context) : base(context) { _timer = new Util.StaticTimer(TimeSpan.FromSeconds(1)); }