public DocumentAppService( IProjectRepository projectRepository, IDocumentRepository documentRepository, IDocumentSourceFactory documentStoreFactory, IDistributedCache <DocumentResource> resourceCache, IDistributedCache <DocumentUpdateInfo> documentUpdateCache, IHostEnvironment hostEnvironment, IDocumentFullSearch documentFullSearch, IOptions <DocsElasticSearchOptions> docsElasticSearchOptions, IConfiguration configuration) { _projectRepository = projectRepository; _documentRepository = documentRepository; _documentStoreFactory = documentStoreFactory; ResourceCache = resourceCache; DocumentUpdateCache = documentUpdateCache; HostEnvironment = hostEnvironment; _documentFullSearch = documentFullSearch; _configuration = configuration; _docsElasticSearchOptions = docsElasticSearchOptions.Value; _cacheTimeout = GetCacheTimeout(); _documentResourceAbsoluteExpiration = GetDocumentResourceAbsoluteExpirationTimeout(); _documentResourceSlidingExpiration = GetDocumentResourceSlidingExpirationTimeout(); NavigationTreePostProcessor = NullNavigationTreePostProcessor.Instance; }
public DocumentAdminAppService(IProjectRepository projectRepository, IDocumentRepository documentRepository, IDocumentSourceFactory documentStoreFactory, IDistributedCache <DocumentUpdateInfo> documentUpdateCache) { _projectRepository = projectRepository; _documentRepository = documentRepository; _documentStoreFactory = documentStoreFactory; _documentUpdateCache = documentUpdateCache; }
public ProjectAppService( IProjectRepository projectRepository, IDistributedCache <List <VersionInfo> > versionCache, IDocumentSourceFactory documentSource, IDistributedCache <LanguageConfig> languageCache) { _projectRepository = projectRepository; _versionCache = versionCache; _documentSource = documentSource; LanguageCache = languageCache; }
public DocumentAdminAppService(IProjectRepository projectRepository, IDocumentRepository documentRepository, IDocumentSourceFactory documentStoreFactory, IDistributedCache <DocumentUpdateInfo> documentUpdateCache, IDistributedCache <List <VersionInfo> > versionCache, IDistributedCache <LanguageConfig> languageCache) { _projectRepository = projectRepository; _documentRepository = documentRepository; _documentStoreFactory = documentStoreFactory; _documentUpdateCache = documentUpdateCache; _versionCache = versionCache; _languageCache = languageCache; LocalizationResource = typeof(DocsResource); }
public DocumentAppService( IProjectRepository projectRepository, IDocumentRepository documentRepository, IDocumentSourceFactory documentStoreFactory, IDistributedCache <LanguageConfig> languageCache, IDistributedCache <DocumentResourceDto> resourceCache, IDistributedCache <DocumentUpdateInfo> documentUpdateCache, IHostEnvironment hostEnvironment) { _projectRepository = projectRepository; _documentRepository = documentRepository; _documentStoreFactory = documentStoreFactory; LanguageCache = languageCache; ResourceCache = resourceCache; DocumentUpdateCache = documentUpdateCache; HostEnvironment = hostEnvironment; }
public DocumentAppService( IProjectRepository projectRepository, IDocumentRepository documentRepository, IDocumentSourceFactory documentStoreFactory, IDistributedCache <LanguageConfig> languageCache, IDistributedCache <DocumentResourceDto> resourceCache, IDistributedCache <DocumentUpdateInfo> documentUpdateCache, IHostEnvironment hostEnvironment, IDocumentFullSearch documentFullSearch, IOptions <DocsElasticSearchOptions> docsElasticSearchOptions) { _projectRepository = projectRepository; _documentRepository = documentRepository; _documentStoreFactory = documentStoreFactory; LanguageCache = languageCache; ResourceCache = resourceCache; DocumentUpdateCache = documentUpdateCache; HostEnvironment = hostEnvironment; _documentFullSearch = documentFullSearch; _docsElasticSearchOptions = docsElasticSearchOptions.Value; }
public GithubDocumentSource_Tests() { _documentSourceFactory = GetRequiredService <IDocumentSourceFactory>(); _projectRepository = GetRequiredService <IProjectRepository>(); _testData = GetRequiredService <DocsTestData>(); }
public DocumentSourceFactory_Tests() { _documentSourceFactory = GetRequiredService <IDocumentSourceFactory>(); }