Created
July 14, 2024 17:41
-
-
Save wullemsb/2f3333956860c3100b12a1e2aa0e2422 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 OrderSubmittedConsumer : IConsumer<OrderSubmitted> | |
{ | |
public Task Consume(ConsumeContext<OrderSubmitted> context) | |
{ | |
// Handle the message | |
return Task.CompletedTask; | |
} | |
} | |
public class PaymentProcessedConsumer : IConsumer<PaymentProcessed> | |
{ | |
public Task Consume(ConsumeContext<PaymentProcessed> context) | |
{ | |
// Handle the message | |
return Task.CompletedTask; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment