Ver código fonte

Move the every CapSubscribeAttribute to the core project

master
Savorboard 5 anos atrás
pai
commit
0a1d6f802e
3 arquivos alterados com 1 adições e 69 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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
{

Carregando…
Cancelar
Salvar