Class ServiceCollectionExtensions
Extension methods for registering redb.Route in a Microsoft.Extensions.DependencyInjection container.
public static class ServiceCollectionExtensions
Inheritance
Methods
AddRedbRoute(IServiceCollection, Action<RedbRouteBuilder>?)
Registers the route context, hosted service, and route builders.
public static IServiceCollection AddRedbRoute(this IServiceCollection services, Action<RedbRouteBuilder>? configure = null)
AddRouteComponent<TComponent>(IServiceCollection)
Registers a component as a singleton and hooks it into the route context through
public static IServiceCollection AddRouteComponent<TComponent>(this IServiceCollection services) where TComponent : class, IComponent
AddRouteContextConfigurator(IServiceCollection, Action<IServiceProvider, RouteContext>)
Registers an arbitrary startup callback as an .
public static IServiceCollection AddRouteContextConfigurator(this IServiceCollection services, Action<IServiceProvider, RouteContext> configure)