private void WebhookUpdatedEventHandler(object sender, UpdateResourceEventArgs <Webhook> eventArgs) { this.eventService.FireEventAsync(this, new ErtisAuthEvent { EventType = ErtisAuthEventType.WebhookUpdated, UtilizerId = eventArgs.Utilizer.Id, Document = eventArgs.Updated, Prior = eventArgs.Prior, MembershipId = eventArgs.Utilizer.MembershipId }); }
private async Task OnMembershipUpdatedAsync(UpdateResourceEventArgs <Membership> e) { var scheduler = await this.schedulerFactory.GetScheduler(); await this.RescheduleJobAsync(scheduler, e.Updated); }
private void OnMembershipUpdated(object sender, UpdateResourceEventArgs <Membership> e) => this.OnMembershipUpdatedAsync(e).ConfigureAwait(false).GetAwaiter().GetResult();