Console version (command line) LicenseTool will be available on the next version. I will write again when the release will be upload.
You can use Ecng.Interop.HardwareInfo.Id to get the HDD id and use it directly on our web site - https://stocksharp.com/profile/ (Licenses tab in bottom).
I got an exception when call Ecng.Interop.HardwareInfo.Instance.Id
Unhandled exception. System.InvalidOperationException: invalid lsblk result. got 0 values:
at Ecng.Interop.HardwareInfo.GetLinuxVolumeId()
at Ecng.Interop.HardwareInfo.InitIdLinux()
at Ecng.Interop.HardwareInfo..ctor()
at Ecng.Interop.HardwareInfo.<>c.<.cctor>b__14_0()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy1.CreateValue() at System.Lazy1.get_Value()
at Ecng.Interop.HardwareInfo.get_Instance()
at hddconsole.Program.Main(String[] args) in /home/ec2-user/soft/hdd_info/hddconsole/Program.cs:line 9
Console version (command line) LicenseTool will be available on the next version. I will write again when the release will be upload.
You can use Ecng.Interop.HardwareInfo.Id to get the HDD id and use it directly on our web site - https://stocksharp.com/profile/ (Licenses tab in bottom).
Comments (3)
Login or Create account, Log in or register to leave a comment
Hello
I got an exception when call Ecng.Interop.HardwareInfo.Instance.Id
Unhandled exception. System.InvalidOperationException: invalid lsblk result. got 0 values: at Ecng.Interop.HardwareInfo.GetLinuxVolumeId() at Ecng.Interop.HardwareInfo.InitIdLinux() at Ecng.Interop.HardwareInfo..ctor() at Ecng.Interop.HardwareInfo.<>c.<.cctor>b__14_0() at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at System.Lazy1.get_Value() at Ecng.Interop.HardwareInfo.get_Instance() at hddconsole.Program.Main(String[] args) in /home/ec2-user/soft/hdd_info/hddconsole/Program.cs:line 9Hello
Please try the newest Ecng.Interop version