public async Task GetFreshRepositoryAsync()
        {
            string         workingFolder = Repository.MRepository.WorkingFolder;
            R <Repository> repository    = await GetFreshRepositoryAsync(workingFolder, Repository.MRepository.GitCommits);

            if (repository.IsOk)
            {
                Repository = repository.Value;
                RepositoryUpdated?.Invoke(this, new RepositoryUpdatedEventArgs());
            }
        }
        private async Task UpdateRepositoryAsync(GitStatus status, IReadOnlyList <string> repoIds)
        {
            if (Repository == null)
            {
                Log.Warn("No repository yet to update");
                return;
            }

            Repository = await UpdateRepositoryAsync(Repository, status, repoIds);

            RepositoryUpdated?.Invoke(this, new RepositoryUpdatedEventArgs());
        }
예제 #3
0
 /// <summary> Overridable event logic </summary>
 protected virtual void OnRepositoryUpdated(RepositoryEventArgs e)
 {
     RepositoryUpdated?.Invoke(this, e);
 }