protected override void ScheduleNative(JobInfo jobInfo) { }
protected override void CancelNative(JobInfo jobInfo) { }
protected override void CancelNative(JobInfo jobInfo) => BGTaskScheduler.Shared.Cancel(jobInfo.Identifier);
protected virtual IJob ResolveJob(JobInfo jobInfo) => (IJob)this.container.ResolveOrInstantiate(jobInfo.Type);
protected abstract void CancelNative(JobInfo jobInfo);
public override async Task Schedule(JobInfo jobInfo) { await base.Schedule(jobInfo); this.StartJobService(); }
public async Task Schedule(JobInfo jobInfo) { this.ResolveJob(jobInfo); this.ScheduleNative(jobInfo); await this.repository.Set(jobInfo.Identifier, PersistJobInfo.ToPersist(jobInfo)); }
protected abstract void ScheduleNative(JobInfo jobInfo);
public override async Task Schedule(JobInfo jobInfo) { this.TryRegUwpJob(); await base.Schedule(jobInfo); }
protected override void CancelNative(JobInfo jobInfo) => WorkManager.Instance.CancelUniqueWork(jobInfo.Identifier);
protected override void RegisterNative(JobInfo jobInfo) { }
protected abstract void RegisterNative(JobInfo jobInfo);
protected virtual IJob ResolveJob(JobInfo jobInfo) => (IJob)ActivatorUtilities.GetServiceOrCreateInstance(this.container, jobInfo.Type);