private void OnOptionsChange()

in src/CosmosCache.cs [475:488]


        private void OnOptionsChange(CosmosCacheOptions options)
        {
            // Did we create our own internal client? If so, we need to dispose it.
            if (this.initializedClient && this.cosmosClient != null)
            {
                // In case this becomes an issue with concurrent access to the client, we can see if ReaderWriterLockSlim can be leveraged.
                this.cosmosClient.Dispose();
            }

            this.options = options;

            // Force re-initialization on the next Connect
            this.cosmosContainer = null;
        }