Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }