RobThree / MongoRepository

Repository abstraction layer on top of Official MongoDB C# driver
https://www.nuget.org/packages/MongoRepository/
MIT License
307 stars 141 forks source link

Added global config option to allow configuration of ssl settings #54

Open alexbechmann opened 7 years ago

alexbechmann commented 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"); `