From 14320e86e215c8d4d54bc721eeb25ba8233769bf Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Fri, 21 Jul 2017 15:22:06 +0800 Subject: [PATCH] Shielding unsupport code. --- .../CAP.SubscribeAttribute.cs | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs b/src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs index a914df6..06ec6e6 100644 --- a/src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs +++ b/src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs @@ -6,35 +6,35 @@ namespace DotNetCore.CAP public class CapSubscribeAttribute : TopicAttribute { public CapSubscribeAttribute(string name) - : this(name, 0) + : base(name) { } - /// - /// Not support - /// - public CapSubscribeAttribute(string name, int partition) - : this(name, partition, 0) - { - } + ///// + ///// Not support + ///// + //public CapSubscribeAttribute(string name, int partition) + // : this(name, partition, 0) + //{ + //} - /// - /// Not support - /// - public CapSubscribeAttribute(string name, int partition, long offset) - : base(name) - { - Offset = offset; - Partition = partition; - } + ///// + ///// Not support + ///// + //public CapSubscribeAttribute(string name, int partition, long offset) + // : base(name) + //{ + // Offset = offset; + // 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() {