Exemplo n.º 1
0
        public HybridTranslator(ICacheManager cache, IExceptionLogger exceptionLogger, ILogger logger)
        {
            textTranslator     = new FileBasedTranslator(cache, exceptionLogger, logger);
            resourceTranslator = new ResourceBasedTranslator(cache, exceptionLogger, logger);

            translators = new List <ITranslator>();

            translators.Add(textTranslator);
            translators.Add(resourceTranslator);
        }
Exemplo n.º 2
0
        public HybridTranslator()
        {
            textTranslator     = new FileBasedTranslator();
            resourceTranslator = new ResourceBasedTranslator();

            translators = new List <ITranslator>();

            translators.Add(textTranslator);
            translators.Add(resourceTranslator);
        }