Created
December 2, 2016 00:22
-
-
Save dcomartin/30e425d1b26e1a033dde29f5e6cb5d12 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