Nuke the blocking API

pull/178/head
David Fowler 2022-11-05 08:44:07 -07:00
parent 1d50745464
commit 27daaffe38
1 changed files with 0 additions and 22 deletions

View File

@ -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<string> BlockingTask()
{
Task.Delay(TimeSpan.FromMinutes(10)).Wait();
return TypedResults.Ok("succeeded");
}
}