Esempio n. 1
0
        public async Task <RefreshTask> UpdateVersionControlAsync(Guid id)
        {
            RefreshTask task = new RefreshTask {
                Scope = TaskScopeKind.VersionControl, TargetId = id
            };

            context.Tasks.Add(task);
            await context.SaveChangesAsync();

            return(task);
        }
Esempio n. 2
0
        public async Task <RefreshTask> UpdateRepositoryAsync(Guid id)
        {
            RefreshTask task = new RefreshTask {
                Scope = TaskScopeKind.Repository, TargetId = id
            };

            context.Tasks.Add(task);
            await context.SaveChangesAsync();

            return(task);
        }