The Wayback Machine - https://web.archive.org/web/20200912184217/https://github.com/RobThree/MongoRepository/pull/54
Skip to content
This repository has been archived by the owner. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
from

Conversation

@alexbechmann
Copy link

alexbechmann commented Oct 27, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
1 participant
You can’t perform that action at this time.