Exemplo n.º 1
0
        public static StashboardClient New(Action<StashboardClientBehavior> args)
        {
            try
            {
                var init = new StashboardClientBehaviorImpl();
                args(init);
                var client = new StashboardClientImpl(init);

                return client;
            }
            catch (Exception e)
            {
                throw new StashboardClientInitException("Unable to initialize the Stashboard client.", e);
            }
        }
Exemplo n.º 2
0
        public static StashboardClient New(Action <StashboardClientBehavior> args)
        {
            try
            {
                var init = new StashboardClientBehaviorImpl();
                args(init);
                var client = new StashboardClientImpl(init);

                return(client);
            }
            catch (Exception e)
            {
                throw new StashboardClientInitException("Unable to initialize the Stashboard client.", e);
            }
        }
Exemplo n.º 3
0
 public StashboardClientImpl(StashboardClientBehaviorImpl args)
 {
     Behavior = args;
 }