コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }