public LeaseManagerBuilder WithLeaseCollection(DocumentCollectionInfo leaseCollectionLocation) { if (leaseCollectionLocation == null) { throw new ArgumentNullException(nameof(leaseCollectionLocation)); } this.leaseCollectionLocation = leaseCollectionLocation.Canonicalize(); return(this); }
public DocumentServiceLeaseStoreManagerBuilder WithLeaseCollection(DocumentCollectionInfo leaseCollectionLocation) { if (leaseCollectionLocation == null) { throw new ArgumentNullException(nameof(leaseCollectionLocation)); } this.settings.LeaseCollectionInfo = leaseCollectionLocation.Canonicalize(); return(this); }