using System;
using JetBrains.Annotations;
namespace Tapeti.Annotations
{
///
///
/// Binds to an existing durable queue to receive messages. Can be used
/// on an entire MessageController class or on individual methods.
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
[MeansImplicitUse(ImplicitUseTargetFlags.WithMembers)]
public class DurableQueueAttribute : Attribute
{
///
/// Specifies the name of the durable queue (must already be declared).
///
public string Name { get; set; }
///
/// The name of the durable queue
public DurableQueueAttribute(string name)
{
Name = name;
}
}
}