Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fernandezja/aspnetcore-experiments

Code Kata with ASP.NET Core (practices, explorations, experiments, tests or just playing with aspnetcore)
https://github.com/fernandezja/aspnetcore-experiments

asp-net-core aspnet-core aspnetcore aspnetcore-mvc aspnetcore-webapi aspnetcoremvc

Last synced: 3 days ago
JSON representation

Code Kata with ASP.NET Core (practices, explorations, experiments, tests or just playing with aspnetcore)

Awesome Lists containing this project

README

        

# aspnetcore-experiments
Code Kata with ASP.NET Core (practicing, exploring, experimenting, testing and playing)

| Example | Description |
|----- |------- |
|[ViewLocationExpander](https://github.com/fernandezja/aspnetcore-experiments/tree/master/src/ViewLocationExpander) | Add multiple location for our views. Add locations to the razor engine to search the views (views, components, etc.) using / expanding the folders where the resource is searched. Simple example of the [IViewLocationExpander](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.razor.iviewlocationexpander)interface by adding one or more new search paths. |
|[ViewAddPhysicalExternalFolder](https://github.com/fernandezja/aspnetcore-experiments/tree/master/src/ViewAddPhysicalExternalFolder) |Add physical folders (outside the assembly execute folder) where the razor view engine can search (views, components, etc). Using [MvcRazorRuntimeCompilationOptions ](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-3.1) add FileProviders of the type PhysicalFileProvider |
|[DynamicRouteValueTransformer](https://github.com/fernandezja/aspnetcore-experiments/tree/master/src/DynamicRouteValueTransformer) |Using dynamic routing. Simple example map route dynamic to controller/action. The handler [StarwarsDynamicRouteValueTransformer](https://github.com/fernandezja/aspnetcore-experiments/tree/master/src/DynamicRouteValueTransformer/WebApplication1/Code/StarwarsDynamicRouteValueTransformer.cs), i wrote provide route from data repositories (is a memory list into this example), use async method Translate (with parameters HttpContext, RouteValueDictionary) and translated into "again" route values dictionary as return. IMPORTANT: Not change route pattern, not redirect... but process the request (add o change value route)|
|[ApplicationPart](https://github.com/fernandezja/aspnetcore-experiments/tree/master/src/ApplicationPart) |Using [Microsoft.AspNetCore.Mvc.ApplicationParts](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.applicationparts) to discover and load ASP.NET Core features (controllers, view components, etc.) from SharedComponent Library. Views are shared by embedding them. |