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
14320e86
Commit
14320e86
authored
Jul 21, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shielding unsupport code.
parent
b167dbde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
CAP.SubscribeAttribute.cs
src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs
+21
-21
No files found.
src/DotNetCore.CAP.Kafka/CAP.SubscribeAttribute.cs
View file @
14320e86
...
...
@@ -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
()
{
...
...
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