private CosmosClient GetClientInstance()

in src/CosmosCache.cs [549:564]


        private CosmosClient GetClientInstance()
        {
            if (this.options.CosmosClient != null)
            {
                return this.options.CosmosClient;
            }

            if (this.options.ClientBuilder == null)
            {
                throw new ArgumentNullException(nameof(this.options.ClientBuilder));
            }

            return this.options.ClientBuilder
                    .WithApplicationName(CosmosCache.UseUserAgentSuffix)
                    .Build();
        }