您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

OrderService.cs 400 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using DotNetCore.CAP;
  6. namespace Sample.RabbitMQ.SqlServer.Services.Impl
  7. {
  8. public class OrderService : IOrderService, ICapSubscribe
  9. {
  10. [CapSubscribe("sample.rabbitmq.sqlserver.order.check")]
  11. public void Check()
  12. {
  13. Console.WriteLine("out");
  14. }
  15. }
  16. }