Пример #1
0
 public async Task Handle(DisabledChangedNotification notification, CancellationToken cancellationToken)
 {
     var          context = fLoggingContextService.GetRequestContext();
     var          @event  = new UserDisabledChangedEvent(notification.UserId.ToString(), notification.Disabled, context);
     const string method  = nameof(IRemoteClient.UserLoggedOutEventAsync);
     await fClientHubService.SendEventAsync(@event, method, context, cancellationToken);
 }
 private async Task UserDisabledChangedEventAsync(UserDisabledChangedEvent @event)
 {
     await HandleEventAsync(@event);
 }