Class ServiceCollectionExtensions

Namespace: redb.Route.Http
Assembly: redb.Route.Http.dll

Extension methods for registering the HTTP component with dependency injection.

public static class ServiceCollectionExtensions

Inheritance

Object→ServiceCollectionExtensions

Methods

AddRedbRouteHttp(IServiceCollection, Action<HttpCorsOptions>?)

Registers the HTTP and HTTPS components with global CORS configuration.

public static IServiceCollection AddRedbRouteHttp(this IServiceCollection services, Action<HttpCorsOptions>? configureCors)

AddRedbRouteHttp(IServiceCollection)

Registers the HTTP and HTTPS components with the route context.

public static IServiceCollection AddRedbRouteHttp(this IServiceCollection services)