Created
July 14, 2020 09:19
-
-
Save zleao/03c1c1b9784edd662cca3afdaecfffb9 to your computer and use it in GitHub Desktop.
Sample environment configurations for the PortableMongoDB solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var localEnv = new MongoDbConfiguration( | |
databaseName: "LocalDatabaseName", | |
databaseLocation: DbLocation.Local, | |
connectionString: "mongodb://localhost:27017"); | |
var cloudEnv = new MongoDbConfiguration( | |
databaseName: "CloudDatabaseName", | |
databaseLocation: DbLocation.Azure, | |
connectionString: "mongodb://{AzureCosmosAccount}:{AzureCosmosAccountPrimaryKey}==@{AzureCosmosAccount}.documents.azure.com:10255/?ssl=true&replicaSet=globaldb" | |
azureDatabaseInitialThroughput: 2000, | |
azureDatabaseManagementPort: 443); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment