public Task Invoke(Action action, TaskType type = TaskType.Analysis) { return(actionQueue.Execute(() => { action(); return Task.FromResult(true); }, (int)type)); }