Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
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
StackExchange.Redis
Commits
8b4d2ce2
Commit
8b4d2ce2
authored
Aug 10, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include and log the received message when when do an OnMessageFaulted from SetResult
parent
aaade660
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
TestBase.cs
StackExchange.Redis.Tests/TestBase.cs
+8
-1
Message.cs
StackExchange.Redis/StackExchange/Redis/Message.cs
+1
-0
No files found.
StackExchange.Redis.Tests/TestBase.cs
View file @
8b4d2ce2
...
...
@@ -266,7 +266,14 @@ protected IServer GetAnyMaster(ConnectionMultiplexer muxer)
}
muxer
.
InternalError
+=
OnInternalError
;
muxer
.
ConnectionFailed
+=
OnConnectionFailed
;
muxer
.
MessageFaulted
+=
(
msg
,
ex
,
origin
)
=>
Writer
?.
WriteLine
(
$"Faulted from '
{
origin
}
': '
{
msg
}
' - '
{(
ex
==
null
?
"(null)"
:
ex
.
Message
)}
'"
);
muxer
.
MessageFaulted
+=
(
msg
,
ex
,
origin
)
=>
{
Writer
?.
WriteLine
(
$"Faulted from '
{
origin
}
': '
{
msg
}
' - '
{(
ex
==
null
?
"(null)"
:
ex
.
Message
)}
'"
);
if
(
ex
.
Data
.
Contains
(
"got"
))
{
Writer
?.
WriteLine
(
$"Got: '
{
ex
.
Data
[
"got"
]}
'"
);
}
};
muxer
.
Connecting
+=
(
e
,
t
)
=>
Writer
.
WriteLine
(
$"Connecting to
{
Format
.
ToString
(
e
)}
as
{
t
}
"
);
muxer
.
TransactionLog
+=
msg
=>
{
lock
(
Writer
)
{
Writer
.
WriteLine
(
"tran: "
+
msg
);
}
};
muxer
.
Resurrecting
+=
(
e
,
t
)
=>
Writer
.
WriteLine
(
$"Resurrecting
{
Format
.
ToString
(
e
)}
as
{
t
}
"
);
...
...
StackExchange.Redis/StackExchange/Redis/Message.cs
View file @
8b4d2ce2
...
...
@@ -592,6 +592,7 @@ internal bool ComputeResult(PhysicalConnection connection, RawResult result)
}
catch
(
Exception
ex
)
{
ex
.
Data
.
Add
(
"got"
,
result
.
ToString
());
connection
?.
BridgeCouldBeNull
?.
Multiplexer
?.
OnMessageFaulted
(
this
,
ex
);
box
?.
SetException
(
ex
);
return
box
!=
null
;
// we still want to pulse/complete
...
...
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