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
c364e476
Commit
c364e476
authored
May 22, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
87b26ae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ConsistencyMessageManager.cs
src/Cap.Consistency/Store/ConsistencyMessageManager.cs
+5
-1
No files found.
src/Cap.Consistency/Store/ConsistencyMessageManager.cs
View file @
c364e476
using
System
;
using
System
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Cap.Consistency.Infrastructure
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.Extensions.DependencyInjection
;
using
Microsoft.Extensions.DependencyInjection
;
using
Microsoft.Extensions.Logging
;
using
Microsoft.Extensions.Logging
;
...
@@ -11,7 +12,7 @@ namespace Cap.Consistency
...
@@ -11,7 +12,7 @@ namespace Cap.Consistency
/// Provides the APIs for managing message in a persistence store.
/// Provides the APIs for managing message in a persistence store.
/// </summary>
/// </summary>
/// <typeparam name="TMessage">The type encapsulating a message.</typeparam>
/// <typeparam name="TMessage">The type encapsulating a message.</typeparam>
public
class
ConsistencyMessageManager
<
TMessage
>
:
IDisposable
where
TMessage
:
class
public
class
ConsistencyMessageManager
<
TMessage
>
:
IDisposable
where
TMessage
:
ConsistencyMessage
{
{
private
bool
_disposed
;
private
bool
_disposed
;
private
readonly
HttpContext
_context
;
private
readonly
HttpContext
_context
;
...
@@ -64,6 +65,9 @@ namespace Cap.Consistency
...
@@ -64,6 +65,9 @@ namespace Cap.Consistency
ThrowIfDisposed
();
ThrowIfDisposed
();
//todo: validation message fileds is correct
//todo: validation message fileds is correct
return
Store
.
CreateAsync
(
message
,
CancellationToken
);
return
Store
.
CreateAsync
(
message
,
CancellationToken
);
}
}
...
...
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