Example #1
0
        IObservable <Unit> OnCreateRepository(object state)
        {
            var newRepository = GatherRepositoryInfo();

            return(repositoryCreationService.CreateRepository(
                       newRepository,
                       SelectedAccount,
                       BaseRepositoryPath,
                       repositoryHost.ApiClient));
        }
        IObservable <Unit> OnCreateRepository(object state)
        {
            var newRepository = GatherRepositoryInfo();

            return(repositoryCreationService.CreateRepository(
                       newRepository,
                       SelectedAccount,
                       BaseRepositoryPath,
                       modelService.ApiClient)
                   .Do(_ => usageTracker.IncrementCounter(x => x.NumberOfReposCreated).Forget()));
        }
Example #3
0
        IObservable <Unit> OnCreateRepository(object state)
        {
            var newRepository = GatherRepositoryInfo();

            return(repositoryCreationService.CreateRepository(
                       newRepository,
                       SelectedAccount,
                       BaseRepositoryPath,
                       repositoryHost.ApiClient)
                   .Do(_ => usageTracker.IncrementCreateCount().Forget()));
        }