12345678910111213141516171819 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Core.RabbitMQBus.Common
- {
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
- public class SubscribeAttribute : Attribute
- {
- /// <summary>
- /// 队列名称
- /// </summary>
- public string QueueName { get; set; }
- public SubscribeAttribute(string queueName)
- {
- QueueName = queueName;
- }
- }
- }
|