25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EventSubscriber.cs 284 B

1234567891011121314
  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. }