Esempio n. 1
0
 public RamChecker(RamCheckerSettings settings)
 {
     _settings = settings;
     _ramQuery = new ManagementObjectSearcher(
         new ObjectQuery("SELECT * FROM Win32_OperatingSystem")
         );
 }
Esempio n. 2
0
 public RamCheckResult(
     string checkName,
     RamCheckerSettings settings,
     double freeMemoryGb,
     double usedMemoryGb,
     bool isOk,
     bool wasErrorOnLastCheck) : base(
         checkName,
         isOk,
         wasErrorOnLastCheck)
 {
     _settings     = settings;
     _freeMemoryGb = freeMemoryGb;
     _usedMemoryGb = usedMemoryGb;
 }