Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.1.0-preview-538" />

 IServiceRegistration

public interface IServiceRegistration
Represents a service registration.
bool HasCondition { get; }

True if the registration contains any condition, otherwise false.

bool HasScopeName { get; }

True if the registration is restricted to a named scope.

The implementation type.

The TypeInfo of the implementation type.

bool IsDecorator { get; }

True if the registration is a decorator.

True if the registration can used by an unnamed resolution request.

The registration context.

int RegistrationId { get; }

The registration number.

object RegistrationName { get; }

The registration id.

Represents the nature of the registration.

bool CanInjectIntoNamedScope(IEnumerable<object> scopeNames)

Checks that the registration can be injected into a named scope.

IServiceRegistration Clone(Type implementationType, RegistrationType registrationType)

Clones the registration with new underlying type.

Checks whether the registration can be used for a current resolution.

void Replaces(IServiceRegistration serviceRegistration)

Indicates that the current registration replaces another one, it copies the necessary information from the original.