fix Bug 63003

This commit is contained in:
pavelbannov 2023-07-05 00:03:44 +03:00
parent e1e2cce096
commit e634285b97
3 changed files with 6 additions and 6 deletions

View File

@ -316,9 +316,9 @@ public abstract class BaseStartup
app.UseLoggerMiddleware();
app.UseEndpoints(async endpoints =>
app.UseEndpoints(endpoints =>
{
await endpoints.MapCustomAsync(WebhooksEnabled, app.ApplicationServices);
endpoints.MapCustomAsync(WebhooksEnabled, app.ApplicationServices).Wait();
endpoints.MapHealthChecks("/health", new HealthCheckOptions()
{

View File

@ -123,9 +123,9 @@ public class Startup
app.UseAuthorization();
app.UseEndpoints(async endpoints =>
app.UseEndpoints(endpoints =>
{
await endpoints.MapCustomAsync();
endpoints.MapCustomAsync().Wait();
endpoints.MapHealthChecks("/health", new HealthCheckOptions()
{

View File

@ -144,9 +144,9 @@ public class Startup
app.UseAuthorization();
app.UseEndpoints( async endpoints =>
app.UseEndpoints(endpoints =>
{
await endpoints.MapCustomAsync();
endpoints.MapCustomAsync().Wait();
endpoints.MapHealthChecks("/health", new HealthCheckOptions()
{