public async Task <ISendEndpoint> GetSendEndpoint(TKey key, SendEndpointFactory <TKey> factory) { CachedSendEndpoint <TKey> sendEndpoint = await _index.Get(key, x => GetSendEndpointFromFactory(x, factory)).ConfigureAwait(false); return(sendEndpoint); }
public async Task <ISendEndpoint> GetSendEndpoint(Uri address) { CachedSendEndpoint <Uri> sendEndpoint = await _index.Get(address, GetSendEndpointFromProvider).ConfigureAwait(false); return(sendEndpoint); }