ExceptionHandlerOptions.CreateScopeForErrors 属性

定义

获取或设置处理程序是否需要在重新执行请求以处理错误时创建单独的 IServiceProvider 范围并替换它 RequestServices

public bool CreateScopeForErrors { get; set; }
member this.CreateScopeForErrors : bool with get, set
Public Property CreateScopeForErrors As Boolean

属性值

注解

默认值为 false

适用于