Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.5.3" />

 UnknownRegistrationConfigurator

Represents the fluent service registration api.
using Stashbox.Lifetime; using System; using System.Runtime.CompilerServices; namespace Stashbox.Registration.Fluent { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class UnknownRegistrationConfigurator : RegistrationConfigurator { internal bool RegistrationShouldBeSkipped { get; set; } internal UnknownRegistrationConfigurator(Type serviceType, Type implementationType, [System.Runtime.CompilerServices.Nullable(2)] object name, LifetimeDescriptor lifetimeDescriptor) : base(serviceType, implementationType, lifetimeDescriptor, name) { } public UnknownRegistrationConfigurator SetImplementationType(Type implementationType) { if (!implementationType.Implements(base.ServiceType)) throw new ArgumentException($"""{implementationType}""{base.ServiceType}"""); base.ImplementationType = implementationType; return this; } public UnknownRegistrationConfigurator Skip() { RegistrationShouldBeSkipped = true; return this; } } }