Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="2.8.9-preview-513" />

 RegistrationContext

public class RegistrationContext
Represents the state of a scoped registration.
public static readonly RegistrationContext Empty

Empty registration data.

Contains the additional service types the current registration mapped to.

Attribute condition collection of the registration.

public bool AutoMemberInjectionEnabled { get; }

True if auto member injection is enabled on this instance.

The auto member injection rule for the registration.

public object[] ConstructorArguments { get; }

The arguments of the selected constructor if any was set.

The constructor selection rule.

public Func<IDependencyResolver, object> ContainerFactory { get; }

Container factory of the registration.

public object DefinedScopeName { get; }

The name of the scope this registration defines.

public Dictionary<object, object> DependencyBindings { get; }

Dependency names or types that are bound to named registrations.

public object ExistingInstance { get; }

The already stored instance which was provided by instance or wireup registration.

public bool FactoryCacheDisabled { get; }

Indicates that the factory delegate for the current registration shouldn't be cached.

public object Finalizer { get; }

The cleanup delegate.

public Delegate FuncDelegate { get; }

Holds the func delegate, if the registration is a factory.

public object Initializer { get; }

The initializer delegate.

public Dictionary<string, object> InjectionMemberNames { get; }

Member names which are explicitly set to be filled by the container.

Injection parameters of the registration.

public bool IsFactoryDelegateACompiledLambda { get; set; }

Flag that indicates the passed factory delegate is a compiled lambda from Expression.

public bool IsLifetimeExternallyOwned { get; }

True if the lifetime of the service is owned externally.

public bool IsWireUp { get; set; }

If true, the existing instance will be wired into the container, it will perform member and method injection on it.

public ILifetime Lifetime { get; }

Lifetime of the registration.

A filter delegate used to determine which members should be auto injected and which are not.

public object Name { get; }

Name of the registration.

public bool ReplaceExistingRegistration { get; }

Indicates that the current registration should replace an existing one.

public Func<TypeInformation, bool> ResolutionCondition { get; }

Resolution condition of the registration.

The selected constructor if any was set.

public Func<object> SingleFactory { get; }

Parameterless factory of the registration.

public Type TargetTypeCondition { get; }

Target type condition of the registration.

Constructs a RegistrationContext

public static RegistrationContext New()

Empty registration data.

Creates a copy of this object.