コード例 #1
0
ファイル: StashboardFactory.cs プロジェクト: nickxj/StashNet
        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);
            }
        }
コード例 #2
0
ファイル: StashboardFactory.cs プロジェクト: nickxj/StashNet
        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);
            }
        }
コード例 #3
0
 public StashboardClientImpl(StashboardClientBehaviorImpl args)
 {
     Behavior = args;
 }