private async void State_OnNotificationReceived(object sender, ToastChangedEventArgs e) { if (e.Notification != null || !string.IsNullOrEmpty(e.Notification.UserId)) { var UserId = CurrentUser.FindFirst(ClaimTypes.NameIdentifier); if (!string.IsNullOrEmpty(e.Notification.UserId) && e.Notification.UserId.Equals(UserId)) { await StateChanged(); } } }
private async void State_OnNotificationListCleared(object sender, ToastChangedEventArgs e) { await StateChanged(); }