예제 #1
0
 protected override void ScheduleNative(JobInfo jobInfo)
 {
 }
예제 #2
0
 protected override void CancelNative(JobInfo jobInfo)
 {
 }
예제 #3
0
 protected override void CancelNative(JobInfo jobInfo)
 => BGTaskScheduler.Shared.Cancel(jobInfo.Identifier);
예제 #4
0
 protected virtual IJob ResolveJob(JobInfo jobInfo)
 => (IJob)this.container.ResolveOrInstantiate(jobInfo.Type);
예제 #5
0
 protected abstract void CancelNative(JobInfo jobInfo);
예제 #6
0
        public override async Task Schedule(JobInfo jobInfo)
        {
            await base.Schedule(jobInfo);

            this.StartJobService();
        }
예제 #7
0
 public async Task Schedule(JobInfo jobInfo)
 {
     this.ResolveJob(jobInfo);
     this.ScheduleNative(jobInfo);
     await this.repository.Set(jobInfo.Identifier, PersistJobInfo.ToPersist(jobInfo));
 }
예제 #8
0
 protected abstract void ScheduleNative(JobInfo jobInfo);
예제 #9
0
 public override async Task Schedule(JobInfo jobInfo)
 {
     this.TryRegUwpJob();
     await base.Schedule(jobInfo);
 }
예제 #10
0
 protected override void CancelNative(JobInfo jobInfo)
 => WorkManager.Instance.CancelUniqueWork(jobInfo.Identifier);
예제 #11
0
파일: JobManager.cs 프로젝트: moljac/shiny
 protected override void RegisterNative(JobInfo jobInfo)
 {
 }
예제 #12
0
 protected abstract void RegisterNative(JobInfo jobInfo);
예제 #13
0
 protected virtual IJob ResolveJob(JobInfo jobInfo)
 => (IJob)ActivatorUtilities.GetServiceOrCreateInstance(this.container, jobInfo.Type);