Mark van Renswoude
6c32665c8a
Reimplemented the exception strategy and logging Much XML documentation, such wow
29 lines
839 B
C#
29 lines
839 B
C#
using System;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Tapeti.Annotations
|
|
{
|
|
/// <inheritdoc />
|
|
/// <summary>
|
|
/// Binds to an existing durable queue to receive messages. Can be used
|
|
/// on an entire MessageController class or on individual methods.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
|
|
[MeansImplicitUse(ImplicitUseTargetFlags.WithMembers)]
|
|
public class DurableQueueAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Specifies the name of the durable queue (must already be declared).
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
|
|
/// <inheritdoc />
|
|
/// <param name="name">The name of the durable queue</param>
|
|
public DurableQueueAttribute(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
}
|
|
}
|