Exemplo n.º 1
0
        public static void AddZooKeeper(this IUraganoSampleBuilder builder)
        {
            var client  = builder.Configuration.GetSection("Uragano:ServiceDiscovery:ZooKeeper:Client");
            var service = builder.Configuration.GetSection("Uragano:ServiceDiscovery:ZooKeeper:Service");

            if (service.Exists())
            {
                builder.AddZooKeeper(client, service);
            }
            else
            {
                builder.AddZooKeeper(client);
            }
        }