ServiceProviderOptions ServiceProviderOptions ServiceProviderOptions Class

Definition

Options for configuring various behaviors of the default IServiceProvider implementation.

public class ServiceProviderOptions
type ServiceProviderOptions = class
Public Class ServiceProviderOptions
Inheritance
ServiceProviderOptionsServiceProviderOptionsServiceProviderOptions

Constructors

ServiceProviderOptions() ServiceProviderOptions() ServiceProviderOptions()

Properties

ValidateOnBuild ValidateOnBuild ValidateOnBuild

true to perform check verifying that all services can be created during

BuildServiceProvider
call; otherwise false. Defaults to false. NOTE: this check doesn't verify open generics services.

ValidateScopes ValidateScopes ValidateScopes

true to perform check verifying that scoped services never gets resolved from root provider; otherwise false. Defaults to false.

Applies to