namespace JiShe.CollectBus.Kafka.Attributes;

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class TopicAttribute : Attribute
{
    /// <summary>
    ///     Initializes a new instance of the <see cref="TopicAttribute" /> class.
    /// </summary>
    /// <param name="name">The name.</param>
    public TopicAttribute(string name = "Default")
    {
        Name = name;
    }

    /// <summary>
    ///     Gets or sets the name.
    /// </summary>
    /// <value>
    ///     The name.
    /// </value>
    public string Name { get; set; }
}