public async static Task <Result> RequestRepositoryScrapingAsync( IReliableStateManager stateManager, RequestRepositoryScrapingInput input) { var firstTaskQueue = await GetFirstTaskQueue(stateManager); using (var tx = stateManager.CreateTransaction()) { await firstTaskQueue.EnqueueAsync(tx, new ScrapingTask { AuthToken = input.AuthToken, ScheduledRepositories = new List <ScheduledRepository> { new ScheduledRepository { Name = input.Name, Owner = input.Owner } }, UserLogin = input.UserLogin, Type = ScrapingTaskType.Repository }); await tx.CommitAsync(); } return(new Result { Success = true }); }
public Task <Result> RequestRepositoryScrapingAsync(RequestRepositoryScrapingInput input) { return(Scraper.RequestRepositoryScrapingAsync(StateManager, input)); }