Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created July 14, 2024 17:41
Show Gist options
  • Save wullemsb/2f3333956860c3100b12a1e2aa0e2422 to your computer and use it in GitHub Desktop.
Save wullemsb/2f3333956860c3100b12a1e2aa0e2422 to your computer and use it in GitHub Desktop.
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