Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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