ServiceProviderOptions.ValidateScopes Property


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

 property bool ValidateScopes { bool get(); void set(bool value); };
public bool ValidateScopes { get; set; }
member this.ValidateScopes : bool with get, set
Public Property ValidateScopes As Boolean

Property Value

Applies to