public void Dispose() { legacyEntityCreator.Dispose(); if (assetPreloader != null) { assetPreloader.Dispose(); } if (templateProvider != null) { templateProvider.CancelAllTemplatePreparations(); } }
public void CancelAllTemplatePreparations() { if (pendingUrlResolveRequest != null) { pendingUrlResolveRequest.Cancel(); pendingUrlResolveRequest = null; } if (pendingPrepareTemplates != null) { pendingPrepareTemplates = null; return; } if (templateProvider != null) { templateProvider.CancelAllTemplatePreparations(); } }