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
d27aaa44
Commit
d27aaa44
authored
Aug 08, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show the result value in MessageFaulted, even if that means hydrating a RawResult to string
parent
38eff80d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Message.cs
StackExchange.Redis/StackExchange/Redis/Message.cs
+1
-1
RawResult.cs
StackExchange.Redis/StackExchange/Redis/RawResult.cs
+1
-1
RedisSubscriber.cs
StackExchange.Redis/StackExchange/Redis/RedisSubscriber.cs
+2
-2
No files found.
StackExchange.Redis/StackExchange/Redis/Message.cs
View file @
d27aaa44
...
...
@@ -591,7 +591,7 @@ internal bool ComputeResult(PhysicalConnection connection, RawResult result)
}
catch
(
Exception
ex
)
{
connection
?.
BridgeCouldBeNull
?.
Multiplexer
?.
OnMessageFaulted
(
this
,
ex
);
connection
?.
BridgeCouldBeNull
?.
Multiplexer
?.
OnMessageFaulted
(
this
,
ex
,
value
:
result
.
ToString
()
);
box
?.
SetException
(
ex
);
return
box
!=
null
;
// we still want to pulse/complete
}
...
...
StackExchange.Redis/StackExchange/Redis/RawResult.cs
View file @
d27aaa44
...
...
@@ -73,7 +73,7 @@ public override string ToString()
case
ResultType
.
Error
:
return
$"
{
Type
}
:
{
GetString
()}
"
;
case
ResultType
.
BulkString
:
return
$"
{
Type
}
:
{
Payload
.
Length
}
bytes
"
;
return
$"
{
Type
}
:
{
GetString
()}
"
;
case
ResultType
.
MultiBulk
:
return
$"
{
Type
}
:
{
ItemsCount
}
items"
;
default
:
...
...
StackExchange.Redis/StackExchange/Redis/RedisSubscriber.cs
View file @
d27aaa44
...
...
@@ -258,9 +258,9 @@ internal string GetConnectionName(EndPoint endPoint, ConnectionType connectionTy
internal
event
Action
<
EndPoint
,
ConnectionType
>
Connecting
;
internal
event
Action
<
EndPoint
,
ConnectionType
>
Resurrecting
;
internal
void
OnMessageFaulted
(
Message
msg
,
Exception
fault
,
[
CallerMemberName
]
string
origin
=
default
,
[
CallerFilePath
]
string
path
=
default
,
[
CallerLineNumber
]
int
lineNumber
=
default
)
internal
void
OnMessageFaulted
(
Message
msg
,
Exception
fault
,
[
CallerMemberName
]
string
origin
=
default
,
[
CallerFilePath
]
string
path
=
default
,
[
CallerLineNumber
]
int
lineNumber
=
default
,
string
value
=
default
)
{
MessageFaulted
?.
Invoke
(
msg
?.
CommandAndKey
,
fault
,
$"
{
origin
}
(
{
path
}
#
{
lineNumber
}
)"
);
MessageFaulted
?.
Invoke
(
msg
?.
CommandAndKey
,
fault
,
$"
{
origin
}
(
{
path
}
#
{
lineNumber
}
)
{
value
}
"
);
}
internal
void
OnClosing
(
bool
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