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

            this.leaseCollectionLocation = leaseCollectionLocation.Canonicalize();
            return(this);
        }
Exemplo n.º 2
0
        public DocumentServiceLeaseStoreManagerBuilder WithLeaseCollection(DocumentCollectionInfo leaseCollectionLocation)
        {
            if (leaseCollectionLocation == null)
            {
                throw new ArgumentNullException(nameof(leaseCollectionLocation));
            }

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