Skip to content

Commit

Permalink
updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabh1007 committed Jan 22, 2024
1 parent c3049c5 commit 4f4cc28
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
13 changes: 6 additions & 7 deletions Microsoft.Azure.Cosmos/src/CosmosClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,9 @@ protected CosmosClient()
/// </code>
/// </example>
/// <remarks>
/// The returned reference doesn't guarantee credentials or connectivity validations because creation doesn't make any network calls.
/// With emulator to ignore SSL Certificate please use connectionstring with "DisableServerCertificateValidation" flag.
/// This flag will be overrided for HTTP calls if custom HttpClientFactory is used.
/// It is NOT recommended to use this flag in production.
/// Emulator: To ignore SSL Certificate please suffix connectionstring with "DisableServerCertificateValidation=True;".
/// When CosmosClientOptions.HttpClientFactory is used, SSL certificate needs to be handled appropriately.
/// NOTE: DO NOT use this flag in production (only for emulator)
/// </remarks>
/// <seealso cref="CosmosClientOptions"/>
/// <seealso cref="Fluent.CosmosClientBuilder"/>
Expand Down Expand Up @@ -499,9 +498,9 @@ public static async Task<CosmosClient> CreateAndInitializeAsync(string accountEn
/// </code>
/// </example>
/// <remarks>
/// With emulator to ignore SSL Certificate please use connectionstring with "DisableServerCertificateValidation" flag.
/// This flag will be overrided for HTTP calls if custom HttpClientFactory is used.
/// It is NOT recommended to use this flag in production.
/// Emulator: To ignore SSL Certificate please suffix connectionstring with "DisableServerCertificateValidation=True;".
/// When CosmosClientOptions.HttpClientFactory is used, SSL certificate needs to be handled appropriately.
/// NOTE: DO NOT use this flag in production (only for emulator)
/// </remarks>
public static async Task<CosmosClient> CreateAndInitializeAsync(string connectionString,
IReadOnlyList<(string databaseId, string containerId)> containers,
Expand Down
4 changes: 3 additions & 1 deletion Microsoft.Azure.Cosmos/src/CosmosClientOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@ internal Protocol ConnectionProtocol
/// </summary>
/// <remarks>
/// <para>
/// Customizing SSL verification is not recommended in production environments.
/// Emulator: To ignore SSL Certificate please suffix connectionstring with "DisableServerCertificateValidation=True;".
/// When CosmosClientOptions.HttpClientFactory is used, SSL certificate needs to be handled appropriately.
/// NOTE: DO NOT use this flag in production (only for emulator)
/// </para>
/// </remarks>
public Func<X509Certificate2, X509Chain, SslPolicyErrors, bool> ServerCertificateCustomValidationCallback { get; set; }
Expand Down
7 changes: 4 additions & 3 deletions Microsoft.Azure.Cosmos/src/Fluent/CosmosClientBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ public CosmosClientBuilder(
/// </summary>
/// <example>"AccountEndpoint=https://mytestcosmosaccount.documents.azure.com:443/;AccountKey={SecretAccountKey};"</example>
/// <param name="connectionString">The connection string must contain AccountEndpoint and AccountKey or ResourceToken.</param>
/// <remarks>With emulator to ignore SSL Certificate please use connectionstring with "DisableServerCertificateValidation" flag.
/// This flag will be overrided for HTTP calls if custom HttpClientFactory is used.
/// It is NOT recommended to use this flag in production.
/// <remarks>
/// Emulator: To ignore SSL Certificate please suffix connectionstring with "DisableServerCertificateValidation=True;".
/// When CosmosClientOptions.HttpClientFactory is used, SSL certificate needs to be handled appropriately.
/// NOTE: DO NOT use this flag in production (only for emulator)
/// </remarks>
public CosmosClientBuilder(string connectionString)
{
Expand Down

0 comments on commit 4f4cc28

Please sign in to comment.