From 27daaffe38f44c7e5951e3d311fbe5aeea2c6d3d Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sat, 5 Nov 2022 08:44:07 -0700 Subject: [PATCH] Nuke the blocking API --- .../Podcast.MinimalAPI/Routes/BlockingApi.cs | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/Services/Podcasts/Podcast.MinimalAPI/Routes/BlockingApi.cs diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Routes/BlockingApi.cs b/src/Services/Podcasts/Podcast.MinimalAPI/Routes/BlockingApi.cs deleted file mode 100644 index 71f001b..0000000 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Routes/BlockingApi.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.AspNetCore.Http.HttpResults; -using Microsoft.EntityFrameworkCore; -using Podcast.API.Models; -using Podcast.Infrastructure.Data; -using System.Threading; - -namespace Podcast.API.Routes; - -public static class BlockingApi -{ - public static RouteGroupBuilder MapBlockingApi(this RouteGroupBuilder group) - { - group.MapGet("/", BlockingTask); - return group; - } - - public static Ok BlockingTask() - { - Task.Delay(TimeSpan.FromMinutes(10)).Wait(); - return TypedResults.Ok("succeeded"); - } -}