Open alexbechmann opened 7 years ago
This PR allows you to use CosmosDB Mongo instance on azure which requires TLS1.2.
Usage: ` MongoRepository.GlobalConfig.ConfigureSslSettings(x => x.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12);
IRepository repository = new MongoRepository(ConfigurationManager.ConnectionStrings["MongoServerSettings"].ConnectionString, collectionName: "news-articles"); `
This PR allows you to use CosmosDB Mongo instance on azure which requires TLS1.2.
Usage: ` MongoRepository.GlobalConfig.ConfigureSslSettings(x => x.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12);
IRepository repository = new MongoRepository(ConfigurationManager.ConnectionStrings["MongoServerSettings"].ConnectionString, collectionName: "news-articles");
`