Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/fernandezja/aspnetcore-experiments
- Owner: fernandezja
- License: mit
- Created: 2020-02-23T13:46:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T00:01:04.000Z (4 months ago)
- Last Synced: 2024-11-08T05:14:29.978Z (about 2 months ago)
- Topics: asp-net-core, aspnet-core, aspnetcore, aspnetcore-mvc, aspnetcore-webapi, aspnetcoremvc
- Language: C#
- Homepage:
- Size: 2.44 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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. |