public async static Task <Result> RequestUserInfoScrapingAsync( IReliableStateManager stateManager, RequestUserInfoScrapingInput input) { var firstTaskQueue = await GetFirstTaskQueue(stateManager); using (var tx = stateManager.CreateTransaction()) { await firstTaskQueue.EnqueueAsync(tx, new ScrapingTask { AuthToken = input.AuthToken, UserLogin = input.UserLogin, Type = ScrapingTaskType.UserInfo }); await tx.CommitAsync(); } return(new Result { Success = true }); }
public Task <Result> RequestUserInfoScrapingAsync(RequestUserInfoScrapingInput input) { return(Scraper.RequestUserInfoScrapingAsync(StateManager, input)); }