public PartialViewsInAreasRegistrar( IContentTypeModelScanner contentTypeModelScanner, ITemplateRepository templateModelRepository, CachingViewEnginesWrapper viewEngineWrapper) { _contentTypeModelScanner = contentTypeModelScanner; _templateModelRepository = templateModelRepository; _viewEngineWrapper = viewEngineWrapper; }
public HttpResponseMessage SyncContentModels(bool forceCommit) { _log.Info("Forcing a content type model scan and sync."); IContentTypeModelScanner modelScanner = ServiceLocator.Current.GetInstance <IContentTypeModelScanner>(); modelScanner.Sync(forceCommit: forceCommit); HttpResponseMessage responseMessage = new HttpResponseMessage(HttpStatusCode.OK) { ReasonPhrase = "Content Type Model Scan Performed" }; return(responseMessage); }