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();
}
}