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
77052cb1
Commit
77052cb1
authored
Jan 04, 2020
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix received storage message retry bug. #473
parent
b66031c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
version.props
build/version.props
+1
-1
ISubscribeInvoker.Default.cs
src/DotNetCore.CAP/Internal/ISubscribeInvoker.Default.cs
+9
-1
IProcessor.NeedRetry.cs
src/DotNetCore.CAP/Processor/IProcessor.NeedRetry.cs
+1
-0
No files found.
build/version.props
View file @
77052cb1
...
...
@@ -2,7 +2,7 @@
<PropertyGroup>
<VersionMajor>3</VersionMajor>
<VersionMinor>0</VersionMinor>
<VersionPatch>
0
</VersionPatch>
<VersionPatch>
1
</VersionPatch>
<VersionQuality></VersionQuality>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
</PropertyGroup>
...
...
src/DotNetCore.CAP/Internal/ISubscribeInvoker.Default.cs
View file @
77052cb1
...
...
@@ -9,6 +9,7 @@ using DotNetCore.CAP.Messages;
using
Microsoft.Extensions.DependencyInjection
;
using
Microsoft.Extensions.Internal
;
using
Microsoft.Extensions.Logging
;
using
Newtonsoft.Json.Linq
;
namespace
DotNetCore.CAP.Internal
{
...
...
@@ -62,7 +63,14 @@ namespace DotNetCore.CAP.Internal
}
else
{
executeParameters
[
i
]
=
message
.
Value
;
if
(
message
.
Value
is
JObject
jValue
)
//reading from storage
{
executeParameters
[
i
]
=
jValue
.
ToObject
(
parameterDescriptors
[
i
].
ParameterType
);
}
else
{
executeParameters
[
i
]
=
message
.
Value
;
}
}
}
...
...
src/DotNetCore.CAP/Processor/IProcessor.NeedRetry.cs
View file @
77052cb1
...
...
@@ -55,6 +55,7 @@ namespace DotNetCore.CAP.Processor
foreach
(
var
message
in
messages
)
{
//the message.Origin.Value maybe JObject
await
_messageSender
.
SendAsync
(
message
);
await
context
.
WaitAsync
(
_delay
);
...
...
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