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(); }
public static void CreateTask(WorkerTask task, ulong user, bool value) { QueuedItem q = new QueuedItem() { Task = task, UserId = user, Value = value }; _queue.Enqueue(q); HandleDequeue(); }