public async Task <PartitionAddressInformation> ResolveAsync(
            DocumentServiceRequest request,
            bool forceRefresh,
            CancellationToken cancellationToken)
        {
            IAddressResolver            resolver = this.GetAddressResolver(request);
            PartitionAddressInformation partitionAddressInformation = await resolver.ResolveAsync(request, forceRefresh, cancellationToken);

            if (!this.partitionKeyRangeLocationCache.TryAddPartitionLevelLocationOverride(request))
            {
                return(partitionAddressInformation);
            }

            resolver = this.GetAddressResolver(request);
            return(await resolver.ResolveAsync(request, forceRefresh, cancellationToken));
        }
 public Task<PartitionAddressInformation> ResolveAsync(
     DocumentServiceRequest request,
     bool forceRefresh,
     CancellationToken cancellationToken)
 {
     IAddressResolver resolver = this.GetAddressResolver(request);
     return resolver.ResolveAsync(request, forceRefresh, cancellationToken);
 }