IMQManager.cs 394 B

12345678910111213
  1. using EasyNetQ;
  2. using System;
  3. using System.Threading.Tasks;
  4. namespace XYY.TaskTrack.Standard
  5. {
  6. public interface IMQManager
  7. {
  8. Task Publish<T>(T message, Action<IPublishConfiguration> configure = null) where T : class;
  9. Task PublishDeadMessage<T>(DeadMessage<T> deadMessage) where T : class;
  10. Task Subscribe<T>(IBaseConsumer<T> consumer) where T : class;
  11. }
  12. }