Commit 14320e86 authored by yangxiaodong's avatar yangxiaodong

Shielding unsupport code.

parent b167dbde
...@@ -6,35 +6,35 @@ namespace DotNetCore.CAP ...@@ -6,35 +6,35 @@ namespace DotNetCore.CAP
public class CapSubscribeAttribute : TopicAttribute public class CapSubscribeAttribute : TopicAttribute
{ {
public CapSubscribeAttribute(string name) public CapSubscribeAttribute(string name)
: this(name, 0) : base(name)
{ {
} }
/// <summary> ///// <summary>
/// Not support ///// Not support
/// </summary> ///// </summary>
public CapSubscribeAttribute(string name, int partition) //public CapSubscribeAttribute(string name, int partition)
: this(name, partition, 0) // : this(name, partition, 0)
{ //{
} //}
/// <summary> ///// <summary>
/// Not support ///// Not support
/// </summary> ///// </summary>
public CapSubscribeAttribute(string name, int partition, long offset) //public CapSubscribeAttribute(string name, int partition, long offset)
: base(name) // : base(name)
{ //{
Offset = offset; // Offset = offset;
Partition = partition; // Partition = partition;
} //}
public int Partition { get; } //public int Partition { get; }
public long Offset { get; } //public long Offset { get; }
public bool IsPartition => Partition == 0; //public bool IsPartition => Partition == 0;
public bool IsOffset => Offset == 0; //public bool IsOffset => Offset == 0;
public override string ToString() public override string ToString()
{ {
......
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