NiceHashMiner.Devices.ComputeDevice.ComputeDevice C# (CSharp) Method

ComputeDevice() public method

public ComputeDevice ( int id ) : System
id int
return System
        public ComputeDevice(int id)
        {
            ID = id;
            Name = "fake_" + id;
            NameCount = Name;
            Enabled = true;
            DeviceType = DeviceType.CPU;
            DeviceGroupType = DeviceGroupType.NONE;
            IsEtherumCapale = false;
            IsOptimizedVersion = false;
            Codename = "fake";
            UUID = GetUUID(ID, GroupNames.GetGroupName(DeviceGroupType, ID), Name, DeviceGroupType);
        }

Same methods

ComputeDevice::ComputeDevice ( AmdGpuDevice amdDevice, int GPUCount, bool isDetectionFallback ) : System
ComputeDevice::ComputeDevice ( CudaDevice cudaDevice, DeviceGroupType group, int GPUCount ) : System
ComputeDevice::ComputeDevice ( int id, string group, string name, int threads, ulong affinityMask, int CPUCount ) : System