ASP.NET Core
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
AspNetCore package is available on .
There are different ways to configure Structr.AspNetCore services and most common of them is adding:
This will add all tools described in section below. But if you need only some of tools then these extension methods for IServiceCollection could be used:
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
- methods providing functionality for interacting with app's client-side;
- extension methods for http-related stuff such as HttpContext and HttpRequest;
- provides IActionResults and extension methods related to JavaScript and client-side things;
- JSON-related controller extensions and actions results;
- methods for working with ViewEngine and other common MVC stuff;
- provides tools for working with HTTP referer and other related things;
- extensions and IRule implementations related to modifying url;
- extensions and classes for working with routing;
.
Add service.
Add service.