Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.5.1-preview-622" />

 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; } } }