Esempio n. 1
0
 public NewsCrawlerState(MachineContext context, IState prev)
     : base(context)
 {
     this.prev = prev;
     this._timer = new Util.StaticTimer(TimeSpan.FromMinutes(3));
     InitRssFeed();
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
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>();
 }
Esempio n. 4
0
 public LoggingState(IState decoratee, MachineContext context)
 {
     this.decoratee = decoratee;
     this.context = context;
 }
Esempio n. 5
0
 public NewsBeginState(MachineContext context)
     : base(context)
 {
     waitingForOverlayAnimationCompleted = new Util.StaticTimer(TimeSpan.FromSeconds(1));
 }
Esempio n. 6
0
 public NewsIdleState(MachineContext context)
     : base(context)
 {
 }
Esempio n. 7
0
 public NewsEndState(MachineContext context)
     : base(context)
 {
     _timer = new Util.StaticTimer(TimeSpan.FromSeconds(1));
 }