2016-12-05 08:00:09 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Annotations
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Binds to an existing durable queue to receive messages. Can be used
|
|
|
|
|
/// on an entire MessageController class or on individual methods.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// At the moment there is no support for creating a durable queue and managing the
|
|
|
|
|
/// bindings. The author recommends https://git.x2software.net/pub/RabbitMetaQueue
|
|
|
|
|
/// for deploy-time management of durable queues (shameless plug intended).
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
|
2017-02-12 19:15:56 +01:00
|
|
|
|
public class DurableQueueAttribute : Attribute
|
2016-12-05 08:00:09 +01:00
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
2017-02-12 19:15:56 +01:00
|
|
|
|
public DurableQueueAttribute(string name)
|
2016-12-05 08:00:09 +01:00
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|