InternalServiceRegistrar

Registers every type marked with InternalServiceAttribute into a service collection.

Public Methods

AddInternalServices

public static IServiceCollection AddInternalServices(IServiceCollection services, Assembly[] assemblies)

Adds the annotated types from the given assemblies. Assemblies are passed explicitly rather than discovered from the app domain, which would miss anything not yet loaded.

Parameters:

  • services (IServiceCollection): The collection to add to.
  • assemblies (Assembly[]): The assemblies to scan.

Returns: IServiceCollection

  • The same collection, for chaining.