Class WebApplicationExtensions
Extension methods for configuring WebApplication and its related interfaces to use HTTP API services.
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public static class WebApplicationExtensions
Methods
| Name | Description |
|---|---|
| UseAllowedOrigins(IApplicationBuilder) | Configures the application to use CORS with the allowed origins registered in the service collection. |
| UseApiResponseHandling<TBuilder>(TBuilder) | Configures the application to use ApiExceptionMiddleware for handling exceptions and to convert endpoint results of type
IAsyncEnumerable<T> into StreamingResponse streams. |