Method AddRouteComponent<TComponent>(IServiceCollection)
Registers a component as a singleton and hooks it into the route context through
— the hook
applies at startup. This is THE registration primitive for connector packages
(AddRedbRouteKafka() and friends): a lazy marker singleton that nobody
resolves never reaches the context.
public static IServiceCollection AddRouteComponent<TComponent>(this IServiceCollection services) where TComponent : class, IComponent