public static void SaveAppSettings(DocumentDBConfiguration config) { ConfigurationManager.AppSettings[$"{PREFIX}_{nameof(Host)}"] = config.Host; ConfigurationManager.AppSettings[$"{PREFIX}_{nameof(Key)}"] = config.Key; ConfigurationManager.AppSettings[$"{PREFIX}_{nameof(Database)}"] = config.Database; ConfigurationManager.AppSettings[$"{PREFIX}_{nameof(Collection)}"] = config.Collection; }
public DocumentDBService(DocumentDBConfiguration configuration) { _configuration = configuration; }