ServiceCollectionExtensions
public static class ServiceCollectionExtensionsProvides fluent extension methods for registering the authoritative EricksonLopez.* ecosystem into `IServiceCollection`.
Miembros (3)
- methodAddEricksonLopezEcosystem
public static IServiceCollection AddEricksonLopezEcosystem(this IServiceCollection services, Action<IEcosystemBuilder>? configure = null)Registers the standard EricksonLopez.* ecosystem composition root into the service collection.
- services: this IServiceCollection
- The target service collection.
- configure: Action<IEcosystemBuilder>?
- An optional configuration delegate for the ecosystem builder.
Retorna: The same service collection so that multiple calls can be chained.
Exceptions: ArgumentNullException: Thrown when `services` is `null`
- methodAddEricksonLopezEcosystem
public static IServiceCollection AddEricksonLopezEcosystem(this IServiceCollection services, IConfiguration configuration, Action<IEcosystemBuilder>? configure = null)Registers the standard EricksonLopez.* ecosystem composition root into the service collection with host configuration binding.
- services: this IServiceCollection
- The target service collection.
- configuration: IConfiguration
- The host application configuration root.
- configure: Action<IEcosystemBuilder>?
- An optional configuration delegate for the ecosystem builder.
Retorna: The same service collection so that multiple calls can be chained.
Exceptions: ArgumentNullException: Thrown when `services` or `configuration` is `null`
- methodValidateEricksonLopezEcosystem
public static IServiceCollection ValidateEricksonLopezEcosystem(this IServiceCollection services)Validates that the ecosystem composition root has been properly registered in the service collection.
- services: this IServiceCollection
- The service collection to inspect.
Retorna: The same service collection so that multiple calls can be chained.
Exceptions: ArgumentNullException: Thrown when `services` is `null`; EcosystemInvariantException: Thrown when ecosystem registrations are absent or incomplete