Skip to content
This repository has been archived by the owner on Feb 22, 2020. 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
Choose a base branch
from
Open

Conversation

alexbechmann
Copy link

@alexbechmann 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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant