示例#1
0
        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;
        }
示例#2
0
 public DocumentAdminAppService(IProjectRepository projectRepository,
                                IDocumentRepository documentRepository,
                                IDocumentSourceFactory documentStoreFactory,
                                IDistributedCache <DocumentUpdateInfo> documentUpdateCache)
 {
     _projectRepository    = projectRepository;
     _documentRepository   = documentRepository;
     _documentStoreFactory = documentStoreFactory;
     _documentUpdateCache  = documentUpdateCache;
 }
示例#3
0
 public ProjectAppService(
     IProjectRepository projectRepository,
     IDistributedCache <List <VersionInfo> > versionCache,
     IDocumentSourceFactory documentSource,
     IDistributedCache <LanguageConfig> languageCache)
 {
     _projectRepository = projectRepository;
     _versionCache      = versionCache;
     _documentSource    = documentSource;
     LanguageCache      = languageCache;
 }
示例#4
0
        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);
        }
示例#5
0
 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;
 }
示例#6
0
 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>();
 }
示例#8
0
 public DocumentSourceFactory_Tests()
 {
     _documentSourceFactory = GetRequiredService <IDocumentSourceFactory>();
 }