Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
0a1d6f80
Commit
0a1d6f80
authored
Mar 13, 2019
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the every CapSubscribeAttribute to the core project
parent
96c13b87
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
69 deletions
+1
-69
CAP.SubscribeAttribute.cs
src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs
+0
-50
CAP.SubscribeAttribute.cs
src/DotNetCore.CAP.RabbitMQ/CAP.SubscribeAttribute.cs
+0
-18
CAP.SubscribeAttribute.cs
src/DotNetCore.CAP/CAP.SubscribeAttribute.cs
+1
-1
No files found.
src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs
deleted
100644 → 0
View file @
96c13b87
// 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
;
}
}
}
\ No newline at end of file
src/DotNetCore.CAP.RabbitMQ/CAP.SubscribeAttribute.cs
deleted
100644 → 0
View file @
96c13b87
// 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
)
{
}
}
}
\ No newline at end of file
src/DotNetCore.CAP
.AzureServiceBus
/CAP.SubscribeAttribute.cs
→
src/DotNetCore.CAP/CAP.SubscribeAttribute.cs
View file @
0a1d6f80
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment