Skip to content

Instantly share code, notes, and snippets.

@zleao
Created July 11, 2020 14:38
Show Gist options
  • Save zleao/f5296c3b7b030b21e218e283fa1e2c82 to your computer and use it in GitHub Desktop.
Save zleao/f5296c3b7b030b21e218e283fa1e2c82 to your computer and use it in GitHub Desktop.
Configuration class used in the portable mongodb solution
public enum DbLocation
{
Unknown,
Local,
Azure
}
public interface IMongoDbConfiguration
{
string DatabaseName { get; }
DbLocation DatabaseLocation { get; }
string ConnectionString { get; }
// -- Azure Cosmos DB related configurations --
int AzureDatabaseInitialThroughput { get; }
int AzureDatabaseManagementPort { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment