/// <summary> /// 设置初始工作线程 /// </summary> /// <param name="workerThreadCount"></param> /// <returns></returns> public AbstractBootstrap WorkerThreads(int workerThreadCount) { if (workerThreadCount < 1) { throw new ArgumentException("Can't be below 1", "workerThreadCount"); } Workers = workerThreadCount; connectionConfig.SetOption(DefaultConfigTypeEumns.Workers.ToString(), Workers); return(this); }