示例#1
0
        public static void CreateTask(WorkerTask task, ulong user, string action, params ulong[] roles)
        {
            QueuedItem q = new QueuedItem()
            {
                Task   = task,
                UserId = user,
                Roles  = roles,
            };

            _queue.Enqueue(q);

            HandleDequeue();
        }
示例#2
0
        public static void CreateTask(WorkerTask task, ulong user, bool value)
        {
            QueuedItem q = new QueuedItem()
            {
                Task   = task,
                UserId = user,
                Value  = value
            };

            _queue.Enqueue(q);

            HandleDequeue();
        }