static ServerCallTask() { TaskConfig config = TaskConfig.Default; if (config.ThreadCount == 1) { Task = new ServerCallTask(0); } else { tasks = new ServerCallTask[config.ThreadCount]; tasks[0] = Task = new ServerCallTask(config.TaskTicks); config.OnCheck(check); } }
static ClientCallTask() { TaskConfig config = TaskConfig.Default; if (config.ThreadCount == 1) { Task = new ClientCallTask(0); } else { tasks = new ClientCallTask[config.ThreadCount]; tasks[0] = Task = new ClientCallTask(config.TaskTimestamp); config.OnCheck(check); } }