Example #1
0
 public void On(CustomerContactInfoChanged e)
 => PhoneNumber = e.NewPhoneNumber;
 public Task On(CustomerContactInfoChanged contactInfo)
 {
     Console.WriteLine($"Customer: {contactInfo.CustomerId} ContactInfo changed.");
     return(_writer.UpdateAsync(contactInfo.CustomerId
                                , c => c.PhoneNumber = contactInfo.NewPhoneNumber));
 }