diff --git a/Net.Sdk.Web.Extensions/Net.Sdk.Web.Extensions.csproj b/Net.Sdk.Web.Extensions/Net.Sdk.Web.Extensions.csproj index b2771bb..d7decf2 100644 --- a/Net.Sdk.Web.Extensions/Net.Sdk.Web.Extensions.csproj +++ b/Net.Sdk.Web.Extensions/Net.Sdk.Web.Extensions.csproj @@ -6,7 +6,7 @@ enable Library true - 0.8.7 + 0.8.8 Alexandru Macocian LICENSE true diff --git a/Net.Sdk.Web.Extensions/WebApplicationExtensions.cs b/Net.Sdk.Web.Extensions/WebApplicationExtensions.cs index 230c7cc..3d3aa82 100644 --- a/Net.Sdk.Web.Extensions/WebApplicationExtensions.cs +++ b/Net.Sdk.Web.Extensions/WebApplicationExtensions.cs @@ -34,12 +34,10 @@ public static class WebApplicationExtensions where TWebSocketRoute : WebSocketRouteBase { app.ThrowIfNull(); - return app.MapGet(route, static async context => + return app.MapGet(route, static async (HttpContext context, ILogger logger, TWebSocketRoute route) => { if (context.WebSockets.IsWebSocketRequest) { - var logger = context.RequestServices.GetRequiredService>(); - var route = context.RequestServices.GetRequiredService(); var routeFilters = GetRouteFilters(context).ToList(); var actionContext = new ActionContext(