Exemplo n.º 1
0
        static ServerSocketTask()
        {
            ServerSocketTaskConfig config = ServerSocketTaskConfig.Default;

            if (config.ThreadCount == 1)
            {
                Task = new ServerSocketTask(0);
            }
            else
            {
                tasks    = new ServerSocketTask[config.ThreadCount];
                tasks[0] = Task = new ServerSocketTask(config.TaskTimestamp);
                config.OnCheck(check);
            }
        }
 static ServerSocketTaskConfig()
 {
     (Default = ConfigLoader.GetUnion(typeof(ServerSocketTaskConfig)).ServerSocketTaskConfig ?? new ServerSocketTaskConfig()).set();
 }