2025-04-21 10:17:40 +08:00
|
|
|
|
namespace JiShe.CollectBus.Kafka.Attributes;
|
2025-04-09 14:33:20 +08:00
|
|
|
|
|
2025-04-21 10:17:40 +08:00
|
|
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
|
|
|
|
|
public class TopicAttribute : Attribute
|
2025-04-09 14:33:20 +08:00
|
|
|
|
{
|
2025-04-21 10:17:40 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="TopicAttribute" /> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
|
public TopicAttribute(string name = "Default")
|
2025-04-09 14:33:20 +08:00
|
|
|
|
{
|
2025-04-21 10:17:40 +08:00
|
|
|
|
Name = name;
|
2025-04-09 14:33:20 +08:00
|
|
|
|
}
|
2025-04-21 10:17:40 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the name.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The name.
|
|
|
|
|
|
/// </value>
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
}
|