HAKOM.Http.Core.Net.Api.Extensions Namespace
Provides extension methods that simplify common HTTP service setup tasks.
Remarks
Section titled “Remarks”The extension methods in this namespace target ASP.NET Core builder types and the HAKOM IContainer to register services and configure the HTTP pipeline in a fluent manner.
- ContainerExtensions – registers IServiceInformation in the DI container from assembly metadata or explicit values.
- HttpContextExtensions – reads and writes requested/endpoint media types on the Microsoft.AspNetCore.Http.HttpContext.
- MvcBuilderExtensions – adds controllers from assemblies or explicit type lists with optional route prefixes.
- RequestExtensions – computes the base URL of the current HTTP request.
- WebApplicationBuilderExtensions – enables running the application as a Windows service or systemd daemon.
- WebApplicationExtensions – applies configured CORS policies to the running application.
container.UseServiceInformation(typeof(MyController).Assembly);| Classes | |
|---|---|
| ContainerExtensions | Adds services to an instance of IContainer that are useful for wiring up an HTTP API. |
| HttpContextExtensions | Adds methods for passing context between controllers and services within a request pipeline. |
| MvcBuilderExtensions | Provides methods to add features to an MVC framework based web service. |
| RequestExtensions | Provides extension methods on Microsoft.AspNetCore.Http.HttpRequest for computing request metadata. |
| WebApplicationBuilderExtensions | Provides methods for setting up basic hosting features for an HTTP API. |
| WebApplicationExtensions | Provides extension methods on Microsoft.AspNetCore.Builder.WebApplication for applying HAKOM HTTP configuration. |
Was this page helpful?Thanks for your feedback!