Inheritance: HareDuClientBehavior
Ejemplo n.º 1
0
 public HareDuClientImpl(HareDuClientBehaviorImpl args)
     : base(args)
 {
     VirtualHost = new VirtualHostClientImpl(args);
     User = new UserClientImpl(args);
     Connection = new ConnectionClientImpl(args);
     Cluster = new ClusterClientImpl(args);
     Policy = new PolicyClientImpl(args);
     Configuration = new ConfigurationClientImpl(args);
 }
Ejemplo n.º 2
0
        public static HareDuClient New(Action <HareDuClientBehavior> args)
        {
            try
            {
                var init = new HareDuClientBehaviorImpl();
                args(init);
                var client = new HareDuClientImpl(init);

                return(client);
            }
            catch (Exception e)
            {
                throw new HareDuClientInitException("Unable to initialize the HareDu client.", e);
            }
        }
Ejemplo n.º 3
0
        public static HareDuClient New(Action<HareDuClientBehavior> args)
        {
            try
            {
                var init = new HareDuClientBehaviorImpl();
                args(init);
                var client = new HareDuClientImpl(init);

                return client;
            }
            catch (Exception e)
            {
                throw new HareDuClientInitException("Unable to initialize the HareDu client.", e);
            }
        }
Ejemplo n.º 4
0
 public HareDuClientImpl(HareDuClientBehaviorImpl args) :
     base(args.Logger)
 {
     Behavior = args;
 }