瀏覽代碼

Shielding unsupport code.

master
yangxiaodong 7 年之前
父節點
當前提交
14320e86e2
共有 1 個檔案被更改,包括 21 行新增21 行删除
  1. +21
    -21
      src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs

+ 21
- 21
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)
{
}

/// <summary>
/// Not support
/// </summary>
public CapSubscribeAttribute(string name, int partition)
: this(name, partition, 0)
{
}
///// <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;
}
///// <summary>
///// Not support
///// </summary>
//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()
{


Loading…
取消
儲存