public static void Receive(UserProfileUpdated @event) { var gotIt = @event.UserName; }
public async Task Handle(UserProfileUpdated notification, CancellationToken cancellationToken) { await _userProfileReadRepository.AddOrUpdate(notification.UserProfile); }