public CosmosDbDemo()

in vnext/code-samples/dotnet/src/cosmosdb-vnext-test/Program.cs [54:66]


    public CosmosDbDemo()
    {
        // Configure the connection to Cosmos DB
        // For local emulator, we need to configure TLS/SSL validation
        cosmosClient = new CosmosClient(EndpointUrl, PrimaryKey, new CosmosClientOptions
        {
            ConnectionMode = ConnectionMode.Gateway,
            HttpClientFactory = () => new System.Net.Http.HttpClient(new HttpClientHandler
            {
                ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => true
            })
        });
    }