ContainerOptionsEnableDynamicAssemblyCompilation Property

Simple Injector
Gets or sets a value indicating whether the container will use dynamic assemblies for compilation. By default, this value is true for the first few containers that are created in an AppDomain and false for all other containers. You can set this value explicitly to false to prevent the use of dynamic assemblies or you can set this value explicitly to true to force more container instances to use dynamic assemblies. Note that creating an infinite number of Container instances (for instance one per web request) with this property set to true will result in a memory leak; dynamic assemblies take up memory and will only be unloaded when the AppDomain is unloaded.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.9.1

public bool EnableDynamicAssemblyCompilation { get; set; }

Property Value

Type: Boolean
A boolean indicating whether the container should use a dynamic assembly for compilation.
See Also