Exemplo n.º 1
0
 public TestController(ILogger <TestController> logger,
                       SimpleStateService simpleState,
                       CpuStressService cpuStressService,
                       MemoryPressureService memoryPressureService)
 {
     this._logger                = logger;
     this._simpleState           = simpleState;
     this._cpuStressService      = cpuStressService;
     this._memoryPressureService = memoryPressureService;
 }
Exemplo n.º 2
0
 public Worker(ILogger <Worker> logger,
               CpuStressService cpuStressService,
               AddonService addonService,
               IOptions <GeneralConfig> generalConfig,
               IHostApplicationLifetime hostApplicationLifetime)
 {
     this._logger                  = logger;
     _cpuStressService             = cpuStressService;
     _addonService                 = addonService;
     _generalConfig                = generalConfig.Value;
     this._hostApplicationLifetime = hostApplicationLifetime;
     Debug.WriteLine(typeof(TestWebAddon.LeakyAddon).Name);
 }