Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.2.2-preview-579" />

 UnknownRegistrationConfigurator

Represents the fluent service registration api.
using System; namespace Stashbox.Registration.Fluent { public class UnknownRegistrationConfigurator : RegistrationConfigurator { internal UnknownRegistrationConfigurator(Type serviceType, Type implementationType) : base(serviceType, implementationType) { } public UnknownRegistrationConfigurator SetImplementationType(Type implementationType) { if (!implementationType.Implements(base.ServiceType)) throw new ArgumentException($"""{implementationType}""{base.ServiceType}"""); base.ImplementationType = implementationType; return this; } } }