示例#1
0
 public PushButtonMonitor(IPlayerActor playerActor, ILogger <PushButtonMonitor> logger, IBassActor bassActor, IShutdownActor shutdownActor)
 {
     this.playerActor  = playerActor;
     this.logger       = logger;
     this.bassActor    = bassActor;
     this.AppDirectory = AppDomain.CurrentDomain.BaseDirectory;
     _shutdownActor    = shutdownActor;
 }
 public RestartWorker(ILogger <RestartWorker> logger, IShutdownActor shutdownActor)
 {
     _logger              = logger;
     _upTime              = TimeSpan.FromMinutes(0);
     _shutdownActor       = shutdownActor;
     RestartConfiguration = new RestartConfiguration()
     {
         RestartTime    = TimeSpan.FromHours(12),
         Enabled        = true,
         CheckFrequency = TimeSpan.FromMinutes(30)
     };
 }