public DiProxy( IPlacesService placesService , SessionOperator sessionOperator , IObjectTypesService objectTypesService , IObjectsService objectsService , ILocalizationService localeService , IMapper mapper , ILocalizer localizer , IAdsService adsService , IFilesService filesService , ConfigValuesCollection configValues , IUserInfoService userInfoService) { _elements.Add(typeof(IPlacesService), placesService); _elements.Add(typeof(SessionOperator), sessionOperator); _elements.Add(typeof(IObjectTypesService), objectTypesService); _elements.Add(typeof(IObjectsService), objectsService); _elements.Add(typeof(ILocalizationService), localeService); _elements.Add(typeof(IMapper), mapper); _elements.Add(typeof(ILocalizer), localizer); _elements.Add(typeof(IAdsService), adsService); _elements.Add(typeof(IFilesService), filesService); _elements.Add(typeof(ConfigValuesCollection), configValues); _elements.Add(typeof(IUserInfoService), userInfoService); }
private static void ValidateConfigurationOptions(Hashtable expected, ConfigValuesCollection actual) { foreach (object entry in expected.Keys) { KeyValuePair <string, string> configUnderTest = actual.FirstOrDefault(c => string.Equals(c.Key, entry.ToString(), StringComparison.Ordinal)); Assert.IsNotNull(configUnderTest, "Unable to find config option with name '{0}'", entry); Assert.AreEqual(expected[entry], configUnderTest.Value, "value doesn't match for config option with name '{0}'", entry); } }
internal void RegisterDependencies(ContainerBuilder builder, ConfigValuesCollection configValuesCollection) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } RegisterModules(builder); builder.RegisterInstance(configValuesCollection).AsSelf().SingleInstance(); }
public BaseStorage(ConfigValuesCollection configValues, IMapper mapper) { _configValues = configValues; _mapper = mapper; var pgConnectionString = _configValues.GetPgConnectionString(); _pgDataReader = new PgDynamicDataReader(); _storageHelper = new StorageHelper(); _pgClinet = new PgClient(pgConnectionString, _pgDataReader, _storageHelper); _pgHelper = new PgClientHelper(); }
private void AddConfigurationOptions(dynamic dynaXml, ConfigValuesCollection configProperties, string sectionName) { if (configProperties.Any()) { var configurationElement = dynaXml.rp(sectionName).Configuration.b; foreach (var configPropety in configProperties) { configurationElement.Property.b.Name(configPropety.Key).Value(configPropety.Value).d.End(); } configurationElement.d.End(); } }
public void SetCustomConfigurations(string configurationKeyName, ConfigValuesCollection configValues) { if (configValues == null || !configValues.Any()) { return; } JObject configuration = GetOrCreateConfigurationObject(configurationKeyName); foreach (var configValue in configValues) { configuration.Add(new JProperty(configValue.Key, configValue.Value)); } }
public LocaleStorage(ConfigValuesCollection configValues, IMapper mapper) : base(configValues, mapper) { }
private static void ValidateConfigurationOptions(Hashtable expected, ConfigValuesCollection actual) { foreach (object entry in expected.Keys) { KeyValuePair<string, string> configUnderTest = actual.FirstOrDefault(c => string.Equals(c.Key, entry.ToString(), StringComparison.Ordinal)); Assert.IsNotNull(configUnderTest, "Unable to find config option with name '{0}'", entry); Assert.AreEqual(expected[entry], configUnderTest.Value, "value doesn't match for config option with name '{0}'", entry); } }
private void AddConfigurationOptions(dynamic dynaXml, ConfigValuesCollection configProperties, string sectionName) { if (configProperties.Any()) { var configurationElement = dynaXml.rp(sectionName).Configuration.b; foreach (var configPropety in configProperties) { configurationElement.Property.b.Name(configPropety.Key).Value(configPropety.Value).d.End(); } configurationElement.d.End(); } }
public TranslationStorage(ConfigValuesCollection configValues, IMapper mapper) : base(configValues, mapper) { }
public AdStorage(ConfigValuesCollection configValues, IMapper mapper, IFilesInfoStorage filesInfoStorage) : base(configValues, mapper) { _filesInfoStorage = filesInfoStorage; }
public FilesStorage(ConfigValuesCollection configValues) { _configValues = configValues; _filesRootDir = _configValues.GetUserFilesDirectory(); _fileNameProvider = new MediaFileNameProvider(filesRootDir: _filesRootDir); }
private static void AssertConfiguration(IEnumerable<KeyValuePair<string, string>> expected, ConfigValuesCollection actual) { foreach (var configProperty in expected) { var propertyUnderTest = actual.FirstOrDefault(storage => storage.Key == configProperty.Key); Assert.IsNotNull(propertyUnderTest, "Oozie Configuration '{0}' was not found.", configProperty.Key); Assert.AreEqual(configProperty.Value, propertyUnderTest.Value); } }
public PlacesStorage(ConfigValuesCollection configValues, IMapper mapper) : base(configValues, mapper) { }
public void SetCustomConfigurations(string configurationKeyName, ConfigValuesCollection configValues) { if (configValues == null || !configValues.Any()) { return; } JObject configuration = GetOrCreateConfigurationObject(configurationKeyName); foreach (var configValue in configValues) { configuration.Add(new JProperty(configValue.Key, configValue.Value)); } }
public UserInfoStorage(ConfigValuesCollection configValues, IMapper mapper) : base(configValues, mapper) { }
public ObjectTypesStorage(ConfigValuesCollection configValues, IMapper mapper) : base(configValues, mapper) { }