private void AddCouponUpdateJob() { CouponUpdateJob couponUpdateJob = new CouponUpdateJob(_cekilisService, _userService, _pushService, _couponsService); UpdateCouponEventArgs args = new UpdateCouponEventArgs(); args.job = couponUpdateJob; couponUpdateJob.onCouponUpdateFinished += CouponUpdateFinishedInvoked; AddJob(couponUpdateJob); }
private void CouponUpdateFinished() { UpdateCouponEventArgs args = new UpdateCouponEventArgs() { job = this }; onCouponUpdateFinished.Invoke(this, args); }
private void CouponUpdateFinishedInvoked(object sender, UpdateCouponEventArgs e) { RemoveJob(e.job); AddCekilisPushJob(); }