Created
August 18, 2012 15:50
-
-
Save bsommardahl/3387866 to your computer and use it in GitHub Desktop.
Address changed handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UpdateCustomerAddressAfterChange : IDomainEventHandler<CustomerAddressChanged> | |
{ | |
readonly IRepository _repository; | |
public UpdateCustomerAddressAfterChange(IRepository repository) | |
{ | |
_repository = repository; | |
} | |
public void Handle(CustomerAddressChanged @event) | |
{ | |
_repository.Update(@event.CustomerAddress); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment