コード例 #1
0
 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
     });
 }
コード例 #2
0
        private async Task OnMembershipUpdatedAsync(UpdateResourceEventArgs <Membership> e)
        {
            var scheduler = await this.schedulerFactory.GetScheduler();

            await this.RescheduleJobAsync(scheduler, e.Updated);
        }
コード例 #3
0
 private void OnMembershipUpdated(object sender, UpdateResourceEventArgs <Membership> e) =>
 this.OnMembershipUpdatedAsync(e).ConfigureAwait(false).GetAwaiter().GetResult();