Пример #1
0
 public LocalizedModelTypeScanner(
     ResourceKeyBuilder keyBuilder,
     OldResourceKeyBuilder oldKeyBuilder,
     ScanState state,
     ConfigurationContext configurationContext,
     DiscoveredTranslationBuilder translationBuilder) :
     base(keyBuilder, oldKeyBuilder, state, configurationContext, translationBuilder)
 {
 }
 public LocalizedForeignResourceTypeScanner(
     ResourceKeyBuilder keyBuilder,
     OldResourceKeyBuilder oldKeyBuilder,
     ScanState state,
     ConfigurationContext configurationContext,
     DiscoveredTranslationBuilder translationBuilder)
 {
     _keyBuilder           = keyBuilder;
     _oldKeyBuilder        = oldKeyBuilder;
     _state                = state;
     _configurationContext = configurationContext;
     _translationBuilder   = translationBuilder;
 }
        protected LocalizedTypeScannerBase(
            ResourceKeyBuilder keyBuilder,
            OldResourceKeyBuilder oldKeyBuilder,
            ScanState state,
            ConfigurationContext configurationContext,
            DiscoveredTranslationBuilder translationBuilder)
        {
            _keyBuilder         = keyBuilder;
            _translationBuilder = translationBuilder;

            _collectors = new List <IResourceCollector>
            {
                new UseResourceAttributeCollector(keyBuilder, state),
                new CustomAttributeCollector(keyBuilder, oldKeyBuilder, configurationContext, translationBuilder),
                new ValidationAttributeCollector(keyBuilder, oldKeyBuilder, translationBuilder),
                new ResourceKeyAttributeCollector(keyBuilder, translationBuilder),
                new DisplayAttributeCollector(oldKeyBuilder, translationBuilder),
                new CasualResourceCollector(oldKeyBuilder, translationBuilder)
            };
        }
 public LocalizedEnumTypeScanner(ResourceKeyBuilder keyBuilder, DiscoveredTranslationBuilder translationBuilder)
 {
     _keyBuilder         = keyBuilder;
     _translationBuilder = translationBuilder;
 }