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
223430ce
Commit
223430ce
authored
Jul 18, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename method.
parent
d2dbb1e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
IQueueExecutor.Publish.Base.cs
src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs
+2
-2
IQueueExecutor.Subscibe.cs
src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs
+2
-6
No files found.
src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs
View file @
223430ce
...
...
@@ -40,7 +40,7 @@ namespace DotNetCore.CAP
var
newState
=
default
(
IState
);
if
(!
result
.
Succeeded
)
{
var
shouldRetry
=
await
Update
Job
ForRetryAsync
(
message
,
connection
);
var
shouldRetry
=
await
Update
Message
ForRetryAsync
(
message
,
connection
);
if
(
shouldRetry
)
{
newState
=
new
ScheduledState
();
...
...
@@ -74,7 +74,7 @@ namespace DotNetCore.CAP
}
}
private
async
Task
<
bool
>
Update
Job
ForRetryAsync
(
CapPublishedMessage
message
,
IStorageConnection
connection
)
private
async
Task
<
bool
>
Update
Message
ForRetryAsync
(
CapPublishedMessage
message
,
IStorageConnection
connection
)
{
var
retryBehavior
=
RetryBehavior
.
DefaultRetry
;
...
...
src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs
View file @
223430ce
...
...
@@ -14,23 +14,19 @@ namespace DotNetCore.CAP
public
class
SubscibeQueueExecutor
:
IQueueExecutor
{
private
readonly
IConsumerInvokerFactory
_consumerInvokerFactory
;
private
readonly
IConsumerClientFactory
_consumerClientFactory
;
private
readonly
IStateChanger
_stateChanger
;
private
readonly
ILogger
_logger
;
private
readonly
MethodMatcherCache
_selector
;
//private readonly CapOptions _options;
public
SubscibeQueueExecutor
(
IStateChanger
stateChanger
,
MethodMatcherCache
selector
,
IConsumerInvokerFactory
consumerInvokerFactory
,
IConsumerClientFactory
consumerClientFactory
,
ILogger
<
BasePublishQueueExecutor
>
logger
)
{
_selector
=
selector
;
_consumerInvokerFactory
=
consumerInvokerFactory
;
_consumerClientFactory
=
consumerClientFactory
;
_stateChanger
=
stateChanger
;
_logger
=
logger
;
}
...
...
@@ -53,7 +49,7 @@ namespace DotNetCore.CAP
var
newState
=
default
(
IState
);
if
(!
result
.
Succeeded
)
{
var
shouldRetry
=
await
Update
Job
ForRetryAsync
(
message
,
connection
);
var
shouldRetry
=
await
Update
Message
ForRetryAsync
(
message
,
connection
);
if
(
shouldRetry
)
{
newState
=
new
ScheduledState
();
...
...
@@ -123,7 +119,7 @@ namespace DotNetCore.CAP
}
}
private
async
Task
<
bool
>
Update
Job
ForRetryAsync
(
CapReceivedMessage
message
,
IStorageConnection
connection
)
private
async
Task
<
bool
>
Update
Message
ForRetryAsync
(
CapReceivedMessage
message
,
IStorageConnection
connection
)
{
var
retryBehavior
=
RetryBehavior
.
DefaultRetry
;
...
...
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