You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
321 B

  1. using DotNetCore.CAP;
  2. namespace Sample.AzureServiceBus.InMemory;
  3. public class SampleSubscriber : ICapSubscribe
  4. {
  5. public record Message(string Content);
  6. [CapSubscribe("cap.sample.tests")]
  7. public void Handle(Message message)
  8. {
  9. Console.WriteLine($"Message {message.Content} received");
  10. }
  11. }