ContainerIsLocked Property

Simple Injector
Gets a value indicating whether the container is locked from making any new registrations. The container is automatically locked when the first instance is resolved (e.g. by calling GetInstance).

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.0.0
Syntax

public bool IsLocked { get; }

Return Value

Type: Boolean
true if the specified container is locked; otherwise, false.
See Also

Reference