public override void PostProviderUpdateInformation(ref MachineInformation information) { cpu.Dispose(); bios.Dispose(); platform.Dispose(); RyzenMasterLibrary.UnInit(); }
public override bool Available(MachineInformation information) { if (!hasLoadedNativeLibraries) { var success = RyzenMasterLibrary.Init(MachineInformationGatherer.Logger); hasLoadedNativeLibraries = true; hasSuccessfullyLoadedNativeLibraries = success; if (success) { platform = Platform.GetPlatform(); success = platform.Init(); hasSuccessfullyLoadedNativeLibraries = success; if (success) { GetDevices(); } } } return(hasSuccessfullyLoadedNativeLibraries); }