private static NVMeInfo GetDeviceInfo(StorageInfo storageInfo) { var smart = new NVMeSmart(storageInfo); NVMeInfo info = smart.GetInfo(); return(info); }
private NVMeGeneric(StorageInfo storageInfo, NVMeInfo info, int index, ISettings settings) : base(storageInfo, info.Model, info.Revision, "nvme", index, settings) { Smart = new NVMeSmart(storageInfo); _info = info; CreateSensors(); }
internal static AbstractStorage CreateInstance(StorageInfo storageInfo, ISettings settings) { NVMeInfo nvmeInfo = GetDeviceInfo(storageInfo); return(nvmeInfo == null ? null : new NVMeGeneric(storageInfo, nvmeInfo, storageInfo.Index, settings)); }