Beispiel #1
0
        IObservable <Unit> DoPush()
        {
            OperationError = null;

            return(pullRequestsService.Push(LocalRepository)
                   .Do(_ =>
            {
                if (IsFromFork)
                {
                    usageTracker.IncrementCounter(x => x.NumberOfForkPullRequestPushes).Forget();
                }
                else
                {
                    usageTracker.IncrementCounter(x => x.NumberOfLocalPullRequestPushes).Forget();
                }
            }));
        }