Skip to content

Instantly share code, notes, and snippets.

@bsommardahl
Created August 18, 2012 15:50
Show Gist options
  • Save bsommardahl/3387866 to your computer and use it in GitHub Desktop.
Save bsommardahl/3387866 to your computer and use it in GitHub Desktop.
Address changed handler
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