public static int GetCpuParam(this CpuUsed cpu) { switch (cpu) { case CpuUsed.One: return(1); case CpuUsed.Half: return(Environment.ProcessorCount / 2); case CpuUsed.AllAvailable: return(Environment.ProcessorCount); default: return(1); } }
public Wrapper UseCpus(CpuUsed cpus) { ConverionCpusUsed = cpus; return(this); }