Created
January 6, 2017 01:44
-
-
Save dcomartin/694b1bcd701d5b3353a443e70acf0206 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 AddToCartPostHandler : IRequestPostProcessor<AddToCart, Unit> | |
{ | |
private readonly ILogger<AddToCart> _logger; | |
public AddToCartPostHandler(ILogger<AddToCart> logger) | |
{ | |
_logger = logger; | |
} | |
public Task Process(AddToCart request, Unit response) | |
{ | |
_logger.LogInformation("Album {albumId} was added to the cart.", request.AlbumId); | |
return Task.FromResult(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment