HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Class WebApplicationExtensions

    Extension methods for configuring WebApplication and its related interfaces to use HTTP API services.

    Inheritance
    object
    WebApplicationExtensions
    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. T must be a reference type (value type items fail when the endpoints are built).

    © Singulink. All rights reserved.