private CosmosClientOptions BuildClientOptions(CosmosOptions options)
        {
            CosmosClientOptions clientOptions = new CosmosClientOptions();

            if (options.ConnectionMode.HasValue)
            {
                // Default is Direct
                clientOptions.ConnectionMode = options.ConnectionMode.Value;
            }

            if (!string.IsNullOrEmpty(options.ApplicationName))
            {
                clientOptions.ApplicationName = options.ApplicationName;
            }

            if (!string.IsNullOrEmpty(options.ApplicationRegion))
            {
                clientOptions.ApplicationRegion = options.ApplicationRegion;
            }

            return(clientOptions);
        }