private void _NicoLiveCommentClient_CommentPosted(object sender, CommentPostedEventArgs e) { _UIScheduler.Schedule(() => { if (e.ChatResult == ChatResult.InvalidPostkey) { _PostKey = null; } PostCommentResult?.Invoke(this, e.ChatResult == ChatResult.Success); }); }
private async void _NicoLiveCommentClient_CommentPosted(object sender, CommentPostedEventArgs e) { await HohoemaApp.UIDispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { if (e.ChatResult == ChatResult.InvalidPostkey) { _PostKey = null; } PostCommentResult?.Invoke(this, e.ChatResult == ChatResult.Success); }); }