Example #1
0
        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);
        }
Example #2
0
        public async Task <ISendEndpoint> GetSendEndpoint(Uri address)
        {
            CachedSendEndpoint <Uri> sendEndpoint = await _index.Get(address, GetSendEndpointFromProvider).ConfigureAwait(false);

            return(sendEndpoint);
        }