Created
February 27, 2018 02:30
-
-
Save dcomartin/a26c951abb9c4bef26ba0058a9dd2541 to your computer and use it in GitHub Desktop.
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 AlbumAddedToCartHandler | |
: INotificationHandler<AlbumAddedToCart> | |
{ | |
private readonly ILogger<AddToCart> _logger; | |
public AlbumAddedToCartHandler(ILogger<AddToCart> logger) | |
{ | |
_logger = logger; | |
} | |
public void Handle(AlbumAddedToCart notification) | |
{ | |
_logger.LogInformation("Album {albumId} was added to the cart.", | |
notification.AlbumId); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment