Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.5.0-preview-612" />

 ServiceAlreadyRegisteredException

Represents the exception the container throws when a registration process fails due to service duplication. Occurs when the container is configured with ThrowException.
public Type Type { get; }

The type the container is trying to register.

public ServiceAlreadyRegisteredException(Type type, Exception innerException = null)

Constructs a ServiceAlreadyRegisteredException.