ASP.NET Core
Structr.AspNetCore package contains number of classes (including tag-helpers) and extension methods to supply wide range of developer basic needs in different situations of web-development.
Big part of package consists of extensions for controllers, HttpContext, etc., allowing to avoid redundant code in widespread cases.
dotnet add package Structr.AspNetCore
There are different ways to configure Structr.AspNetCore services and most common of them is adding:
services.AddAspNetCore();
This will add all tools described in contents section below. But if you need only some of tools then these extension methods for IServiceCollection could be used:
Method name | Return type | Description |
---|---|---|
AddClientAlerts | IServiceCollection | Add services assisting in transferring alerts from server side to client. |
AddClientOptions | IServiceCollection | Add services assisting in passing data represented by dictionary via Microsoft.AspNetCore.Http.HttpContext.Items |
AddActionContextAccessor | IServiceCollection | |
AddUrlHelper | IServiceCollection |
- JavaScript - provides IActionResults and extension methods related to JavaScript and client-side things;
Last modified 10mo ago