protected async override Task ExecuteJob(IJobExecutionContext context) { var socialAccounts = await GetFacebookSocialAccounts(context); foreach (var socialAccount in socialAccounts) { IMessageAttachmentAppService sevice = DependencyResolver.Resolve <IMessageAttachmentAppService>(); await UnitOfWorkManager.RunWithoutTransaction(socialAccount.SiteId, async() => { await sevice.GetRawDataJob(); }); } }
public AttachmentController(IMessageAttachmentAppService messageAttachmentAppService) { _messageAttachmentAppService = messageAttachmentAppService; }