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.
 
 
 

15 lines
284 B

  1. using System;
  2. using DotNetCore.CAP;
  3. namespace Sample.ConsoleApp
  4. {
  5. public class EventSubscriber : ICapSubscribe
  6. {
  7. [CapSubscribe("sample.console.showtime")]
  8. public void ShowTime(DateTime date)
  9. {
  10. Console.WriteLine(date);
  11. }
  12. }
  13. }