Beispiel #1
0
        public static async Task <bool> TryDeleteTaskAsync <T>(this ITaskStore store) where T : ITask
        {
            var task = await store.GetTaskByTypeAsync(typeof(T));

            if (task != null)
            {
                await store.DeleteTaskAsync(task);

                return(true);
            }

            return(false);
        }