Browse Source

typo fix

pull/1180/head
Yunus Emre Kalkan 7 years ago
parent
commit
d7f375ed84
  1. 8
      modules/docs/src/Volo.Docs.Application/Volo/Docs/Documents/DocumentAppService.cs

8
modules/docs/src/Volo.Docs.Application/Volo/Docs/Documents/DocumentAppService.cs

@ -16,20 +16,20 @@ namespace Volo.Docs.Documents
private readonly IProjectRepository _projectRepository; private readonly IProjectRepository _projectRepository;
private readonly IDocumentStoreFactory _documentStoreFactory; private readonly IDocumentStoreFactory _documentStoreFactory;
protected IDistributedCache<DocumentWithDetailsDto> DocumentCache { get; } protected IDistributedCache<DocumentWithDetailsDto> DocumentCache { get; }
protected IDistributedCache<LanguageConfig> LanguaCache { get; } protected IDistributedCache<LanguageConfig> LanguageCache { get; }
protected IDistributedCache<DocumentResourceDto> ResourceCache { get; } protected IDistributedCache<DocumentResourceDto> ResourceCache { get; }
public DocumentAppService( public DocumentAppService(
IProjectRepository projectRepository, IProjectRepository projectRepository,
IDocumentStoreFactory documentStoreFactory, IDocumentStoreFactory documentStoreFactory,
IDistributedCache<DocumentWithDetailsDto> documentCache, IDistributedCache<DocumentWithDetailsDto> documentCache,
IDistributedCache<LanguageConfig> languaCache, IDistributedCache<LanguageConfig> languageCache,
IDistributedCache<DocumentResourceDto> resourceCache) IDistributedCache<DocumentResourceDto> resourceCache)
{ {
_projectRepository = projectRepository; _projectRepository = projectRepository;
_documentStoreFactory = documentStoreFactory; _documentStoreFactory = documentStoreFactory;
DocumentCache = documentCache; DocumentCache = documentCache;
LanguaCache = languaCache; LanguageCache = languageCache;
ResourceCache = resourceCache; ResourceCache = resourceCache;
} }
@ -149,7 +149,7 @@ namespace Volo.Docs.Documents
return await store.GetLanguageListAsync(project, version); return await store.GetLanguageListAsync(project, version);
} }
return await LanguaCache.GetOrAddAsync( return await LanguageCache.GetOrAddAsync(
project.ShortName, project.ShortName,
GetLanguagesAsync, GetLanguagesAsync,
() => new DistributedCacheEntryOptions () => new DistributedCacheEntryOptions

Loading…
Cancel
Save