public PullRequestStatusBarManager(
     IShowCurrentPullRequestCommand showCurrentPullRequestCommand,
     Lazy <IPullRequestSessionManager> pullRequestSessionManager)
 {
     this.showCurrentPullRequestCommand = showCurrentPullRequestCommand;
     this.pullRequestSessionManager     = pullRequestSessionManager;
 }
        public PullRequestStatusBarManager(
            IUsageTracker usageTracker,
            IOpenPullRequestsCommand openPullRequestsCommand,
            IShowCurrentPullRequestCommand showCurrentPullRequestCommand,
            Lazy <IPullRequestSessionManager> pullRequestSessionManager,
            Lazy <ITeamExplorerContext> teamExplorerContext)
        {
            this.openPullRequestsCommand = new UsageTrackingCommand(openPullRequestsCommand,
                                                                    usageTracker, x => x.NumberOfStatusBarOpenPullRequestList);
            this.showCurrentPullRequestCommand = new UsageTrackingCommand(showCurrentPullRequestCommand,
                                                                          usageTracker, x => x.NumberOfShowCurrentPullRequest);

            this.pullRequestSessionManager = pullRequestSessionManager;
            this.teamExplorerContext       = teamExplorerContext;
        }
Пример #3
0
        public PullRequestStatusBarManager(
            Lazy <IUsageTracker> usageTracker,
            IOpenPullRequestsCommand openPullRequestsCommand,
            IShowCurrentPullRequestCommand showCurrentPullRequestCommand,
            Lazy <IPullRequestSessionManager> pullRequestSessionManager,
            Lazy <ITeamExplorerContext> teamExplorerContext,
            Lazy <IConnectionManager> connectionManager)
        {
            this.openPullRequestsCommand = new UsageTrackingCommand(usageTracker,
                                                                    x => x.NumberOfStatusBarOpenPullRequestList, openPullRequestsCommand);
            this.showCurrentPullRequestCommand = new UsageTrackingCommand(usageTracker,
                                                                          x => x.NumberOfShowCurrentPullRequest, showCurrentPullRequestCommand);

            this.pullRequestSessionManager = pullRequestSessionManager;
            this.teamExplorerContext       = teamExplorerContext;
            this.connectionManager         = connectionManager;
        }