Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
MIT License
2.1k
stars
175
forks
source link
WIP Upgrade to ASP.Net Core 3 and Endpoint Routing #149
Updates to ASP.NET Core 3. Removes some code that now sits inside ASP.NET Routing.
Global before/afterhooks have been removed. Recommendation: Use middleware
RequiresAuthentication has been renamed to RequiresAuthorization
Route authentication can be done like so this.Get("/", async ctx => await ctx.Response.WriteAsync("hi")).RequiresAuthorization();. Policy names can also be passed into RequiresAuthorization()
UseCarter is now MapCarter under EndpointRouting middleware app.UseEndpoints(builder=>builder.MapCarter())
AsString has been removed. There is an Async alternative to be used
Carter targets netcoreapp3.0 not netstandard2.0
JSON.NET has been removed and System.Text.Json is now used
Updates to ASP.NET Core 3. Removes some code that now sits inside ASP.NET Routing.
Global before/afterhooks have been removed. Recommendation: Use middleware
RequiresAuthentication has been renamed to RequiresAuthorization
Route authentication can be done like so
this.Get("/", async ctx => await ctx.Response.WriteAsync("hi")).RequiresAuthorization();
. Policy names can also be passed intoRequiresAuthorization()
UseCarter
is nowMapCarter
underEndpointRouting
middlewareapp.UseEndpoints(builder=>builder.MapCarter())
AsString
has been removed. There is anAsync
alternative to be usedCarter targets
netcoreapp3.0
notnetstandard2.0
JSON.NET
has been removed andSystem.Text.Json
is now usedFixes #39 Fixes #112 Fixes #128 Fixes #145 Fixes #203 Fixes #214 Fixes #207