예제 #1
0
파일: DMI.cs 프로젝트: iAJTin/iSMBIOS
 /// <summary>
 /// Prevents a default instance of the <see cref="DMI"/> class from being created.
 /// </summary>
 private DMI(DmiConnectOptions options)
 {
     _options = options;
     _smbios  = _options == null
         ? SMBIOS.CreateInstance()
         : SMBIOS.CreateInstance(new SmbiosConnectOptions
     {
         UserName = options.UserName,
         Password = options.Password,
         MachineNameOrIpAddress = options.MachineNameOrIpAddress
     });
 }
예제 #2
0
파일: DMI.cs 프로젝트: iAJTin/iSMBIOS
 /// <summary>
 /// Gets an instance of this class for remote machine.<br/>
 /// If <paramref name="options"/> is <b>null</b> (<b>Nothing</b> in Visual Basic) always returns an instance for this machine.
 /// </summary>
 /// <value>
 /// A <see cref="DMI"/> reference that contains <b>DMI</b> information.
 /// </value>
 public static DMI CreateInstance(DmiConnectOptions options = null) => options == null ? new DMI() : new DMI(options);