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
548e3ec0
Commit
548e3ec0
authored
May 17, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
c04f65c8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
92 deletions
+0
-92
KafkaConsistency.cs
src/Cap.Consistency/KafkaConsistency.cs
+0
-39
IConsumerModel.cs
src/Cap.Consistency/Models/IConsumerModel.cs
+0
-12
RouteTable.cs
src/Cap.Consistency/RouteTable.cs
+0
-41
No files found.
src/Cap.Consistency/KafkaConsistency.cs
deleted
100644 → 0
View file @
c04f65c8
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Linq
;
using
Cap.Consistency.Consumer
;
using
Microsoft.Extensions.DependencyInjection
;
using
System.Threading.Tasks
;
namespace
Cap.Consistency
{
public
class
KafkaConsistency
:
IRoute
{
private
IServiceProvider
_serviceProvider
;
private
IEnumerable
<
IConsumerHandler
>
_handlers
;
public
KafkaConsistency
(
IServiceProvider
serviceProvider
)
{
_serviceProvider
=
serviceProvider
;
}
public
void
Start
()
{
_handlers
=
_serviceProvider
.
GetServices
<
IConsumerHandler
>();
var
services
=
_serviceProvider
.
GetServices
<
IConsumerService
>();
foreach
(
var
handler
in
_handlers
)
{
handler
.
Start
(
services
);
}
}
public
void
Stop
()
{
foreach
(
var
handler
in
_handlers
)
{
handler
.
Stop
();
}
}
public
async
Task
Start
()
{
}
}
}
src/Cap.Consistency/Models/IConsumerModel.cs
deleted
100644 → 0
View file @
c04f65c8
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Cap.Consistency.Models
{
public
interface
IConsumerModel
{
string
TopicName
{
get
;
set
;
}
}
}
src/Cap.Consistency/RouteTable.cs
deleted
100644 → 0
View file @
c04f65c8
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
Cap.Consistency.Abstractions
;
namespace
Cap.Consistency
{
public
class
RouteTable
:
IReadOnlyList
<
ConsumerExecutorDescriptor
>
{
public
RouteTable
()
{
}
public
RouteTable
(
List
<
ConsumerExecutorDescriptor
>
messageMethods
)
{
QMessageMethods
=
messageMethods
;
}
public
ConsumerExecutorDescriptor
this
[
int
index
]
{
get
{
throw
new
NotImplementedException
();
}
}
public
int
Count
{
get
{
throw
new
NotImplementedException
();
}
}
public
List
<
ConsumerExecutorDescriptor
>
QMessageMethods
{
get
;
set
;
}
public
IEnumerator
<
ConsumerExecutorDescriptor
>
GetEnumerator
()
{
throw
new
NotImplementedException
();
}
IEnumerator
IEnumerable
.
GetEnumerator
()
{
throw
new
NotImplementedException
();
}
}
}
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