예제 #1
0
 public override bool OnStartJob(Android.App.Job.JobParameters @params)
 {
     this.cancelSrc = new CancellationTokenSource();
     CrossJobs
     .Current
     .RunAll(this.cancelSrc.Token)
     .ContinueWith(x => this.JobFinished(@params, false));
     //.ContinueWith(x => this.JobFinished(@params, true));
     return(true);
 }
예제 #2
0
 public override bool OnStopJob(Android.App.Job.JobParameters @params)
 {
     this.cancelSrc?.Cancel();
     return(true);
 }