Commit 0a1d6f80 authored by Savorboard's avatar Savorboard

Move the every CapSubscribeAttribute to the core project

parent 96c13b87
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using DotNetCore.CAP.Abstractions;
// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP
{
/// <summary>
/// An attribute for subscribe Kafka messages.
/// </summary>
public class CapSubscribeAttribute : TopicAttribute
{
public CapSubscribeAttribute(string name)
: base(name)
{
}
///// <summary>
///// Not support
///// </summary>
//public CapSubscribeAttribute(string name, int partition)
// : this(name, partition, 0)
//{
//}
///// <summary>
///// Not support
///// </summary>
//public CapSubscribeAttribute(string name, int partition, long offset)
// : base(name)
//{
// Offset = offset;
// Partition = partition;
//}
//public int Partition { get; }
//public long Offset { get; }
//public bool IsPartition => Partition == 0;
//public bool IsOffset => Offset == 0;
public override string ToString()
{
return Name;
}
}
}
\ No newline at end of file
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using DotNetCore.CAP.Abstractions;
// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP
{
/// <summary>
/// An attribute for subscribe RabbitMQ messages.
/// </summary>
public class CapSubscribeAttribute : TopicAttribute
{
public CapSubscribeAttribute(string name) : base(name)
{
}
}
}
\ No newline at end of file
...@@ -7,7 +7,7 @@ using DotNetCore.CAP.Abstractions; ...@@ -7,7 +7,7 @@ using DotNetCore.CAP.Abstractions;
namespace DotNetCore.CAP namespace DotNetCore.CAP
{ {
/// <summary> /// <summary>
/// An attribute for subscribe Kafka messages. /// An attribute for subscribe event bus message.
/// </summary> /// </summary>
public class CapSubscribeAttribute : TopicAttribute public class CapSubscribeAttribute : TopicAttribute
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment