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
7472ad8a
Commit
7472ad8a
authored
Aug 28, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't promise MemoryStream, in case we can't do that in the future; Stream is fine
parent
e99d5005
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CompletionManager.cs
src/StackExchange.Redis/CompletionManager.cs
+2
-1
ExtensionMethods.cs
src/StackExchange.Redis/ExtensionMethods.cs
+1
-1
No files found.
src/StackExchange.Redis/CompletionManager.cs
View file @
7472ad8a
...
...
@@ -62,7 +62,8 @@ private static void SharedCompleteSyncOrAsync(ICompletable operation)
}
private
void
PerInstanceCompleteSyncOrAsync
(
ICompletable
operation
)
{
if
(
operation
.
TryComplete
(
false
))
if
(
operation
==
null
)
{
}
else
if
(
operation
.
TryComplete
(
false
))
{
multiplexer
.
Trace
(
"Completed synchronously: "
+
operation
,
name
);
Interlocked
.
Increment
(
ref
completedSync
);
...
...
src/StackExchange.Redis/ExtensionMethods.cs
View file @
7472ad8a
...
...
@@ -170,7 +170,7 @@ private static void AuthenticateAsClientUsingDefaultProtocols(SslStream ssl, str
/// </summary>
/// <param name="bytes">The lease upon which to base the stream</param>
/// <param name="ownsLease">If true, disposing the stream also disposes the lease</param>
public
static
Memory
Stream
AsStream
(
this
Lease
<
byte
>
bytes
,
bool
ownsLease
=
true
)
public
static
Stream
AsStream
(
this
Lease
<
byte
>
bytes
,
bool
ownsLease
=
true
)
{
if
(
bytes
==
null
)
return
null
;
// GIGO
var
segment
=
bytes
.
ArraySegment
;
...
...
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