Преглед на файлове

Move the every CapSubscribeAttribute to the core project

master
Savorboard преди 5 години
родител
ревизия
0a1d6f802e
променени са 3 файла, в които са добавени 1 реда и са изтрити 69 реда
  1. +0
    -50
      src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs
  2. +0
    -18
      src/DotNetCore.CAP.RabbitMQ/CAP.SubscribeAttribute.cs
  3. +1
    -1
      src/DotNetCore.CAP/CAP.SubscribeAttribute.cs

+ 0
- 50
src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs Целия файл

@@ -1,50 +0,0 @@
// 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;
}
}
}

+ 0
- 18
src/DotNetCore.CAP.RabbitMQ/CAP.SubscribeAttribute.cs Целия файл

@@ -1,18 +0,0 @@
// 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)
{
}
}
}

src/DotNetCore.CAP.AzureServiceBus/CAP.SubscribeAttribute.cs → src/DotNetCore.CAP/CAP.SubscribeAttribute.cs Целия файл

@@ -7,7 +7,7 @@ using DotNetCore.CAP.Abstractions;
namespace DotNetCore.CAP
{
/// <summary>
/// An attribute for subscribe Kafka messages.
/// An attribute for subscribe event bus message.
/// </summary>
public class CapSubscribeAttribute : TopicAttribute
{

Зареждане…
Отказ
Запис