public LeaseManagerBuilder WithLeaseCollection(DocumentCollectionInfo leaseCollectionLocation)
        {
            if (leaseCollectionLocation == null)
            {
                throw new ArgumentNullException(nameof(leaseCollectionLocation));
            }

            this.leaseCollectionLocation = leaseCollectionLocation.Canonicalize();
            return(this);
        }
Пример #2
0
        public DocumentServiceLeaseStoreManagerBuilder WithLeaseCollection(DocumentCollectionInfo leaseCollectionLocation)
        {
            if (leaseCollectionLocation == null)
            {
                throw new ArgumentNullException(nameof(leaseCollectionLocation));
            }

            this.settings.LeaseCollectionInfo = leaseCollectionLocation.Canonicalize();
            return(this);
        }