Rebel.Cms.Web.RebelWebApplication.DisposeScope C# (CSharp) Method

DisposeScope() protected method

protected DisposeScope ( ) : void
return void
        protected virtual void DisposeScope()
        {
            //TODO: This is temporary until the render context registration has been refactored to properly dispose when out of http request scope
            //in which case the below is handled by the disposal of RoutableRequestContext
            if (AppContext != null && AppContext.FrameworkContext != null
                && AppContext.FrameworkContext.ScopedFinalizer != null)
            {
                AppContext.FrameworkContext.ScopedFinalizer.FinalizeScope();
            }
        }