示例#1
0
 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;
 }
示例#2
0
 public DocumentDBService(DocumentDBConfiguration configuration)
 {
     _configuration = configuration;
 }