Esempio n. 1
0
        private IRoutingTable Rediscovery(IConnection conn)
        {
            var discoveryManager = new ClusterDiscoveryManager(conn, _routingContext, _logger);

            discoveryManager.Rediscovery();
            return(new RoutingTable(discoveryManager.Routers, discoveryManager.Readers,
                                    discoveryManager.Writers, discoveryManager.ExpireAfterSeconds));
        }
Esempio n. 2
0
        private async Task <IRoutingTable> RediscoveryAsync(IConnection conn)
        {
            var discoveryManager = new ClusterDiscoveryManager(conn, _routingContext, _logger);
            await discoveryManager.RediscoveryAsync().ConfigureAwait(false);

            return(new RoutingTable(discoveryManager.Routers, discoveryManager.Readers,
                                    discoveryManager.Writers, discoveryManager.ExpireAfterSeconds));
        }
Esempio n. 3
0
        private RoundRobinClusterView Rediscovery(IPooledConnection conn)
        {
            var discoveryManager = new ClusterDiscoveryManager(conn, _logger);

            discoveryManager.Rediscovery();
            return(new RoundRobinClusterView(discoveryManager.Routers, discoveryManager.Readers,
                                             discoveryManager.Writers, _stopwatch, discoveryManager.ExpireAfterSeconds));
        }