コード例 #1
0
        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();
                });
            }
        }
コード例 #2
0
 public AttachmentController(IMessageAttachmentAppService messageAttachmentAppService)
 {
     _messageAttachmentAppService = messageAttachmentAppService;
 }