Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class NoCacheApplicationDictionaryReader : ApplicationDictionaryReader
{
public NoCacheApplicationDictionaryReader(
IDictionaryDomainResolver dictionaryDomainResolver,
ITranslationDictionaryReader translationDictionaryReader,
HttpContextBase httpContext)
: base(dictionaryDomainResolver, translationDictionaryReader, httpContext)
{
}
public override IDictionary<string, string> GetPhrases(AppConfiguration application, Language language)
{
var dictionaryDomain = this.DictionaryDomainResolver.GetDictionaryDomain(application);
if (dictionaryDomain == null)
{
return null;
}
return this.TranslationDictionaryReader.GetPhrases(dictionaryDomain, language);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment