private async Task <IServiceDiscoverySource> GetDiscoverySource(ServiceDeployment serviceDeployment, ServiceDiscoveryConfig config)
        {
            var source = _serviceDiscoveryLoader.GetDiscoverySource(serviceDeployment, config);

            await source.Init().ConfigureAwait(false);

            return(source);
        }
Esempio n. 2
0
        private async Task <ServiceDiscoverySourceBase> GetServiceDiscoverySource(ServiceDeployment serviceDeployment, ServiceDiscoveryConfig config)
        {
            var discoverySource = _discoverySourceLoader.GetDiscoverySource(serviceDeployment, config);

            // TODO: RemoteHostPool should either deal with uninitialized source or request different class which represents initialized source
            await discoverySource.InitCompleted.ConfigureAwait(false);

            return(discoverySource);
        }