コード例 #1
0
 internal async Task DiscordLogNotification(DiscordLogNotification notification)
 {
     if (DiscordLogEvent != null)
     {
         await DiscordLogEvent?.Invoke(notification);
     }
 }
コード例 #2
0
 private async Task WonderlandClient_LogEvent(DiscordLogNotification notification)
 {
     await Application.Current.Dispatcher.InvokeAsync(delegate
     {
         _discordConsole.AddOutput(notification.Message);
         DiscordConsole.ScrollToBottom();
     });
 }
コード例 #3
0
 public async Task Handle(DiscordLogNotification notification, CancellationToken cancellationToken)
 {
     await _relayEventHandler.DiscordLogNotification(notification);
 }