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
e46c73d5
Commit
e46c73d5
authored
Apr 14, 2014
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More net40 tweaks
parent
ad9501d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
ConfigurationOptions.cs
...xchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
+2
-1
ConnectionMultiplexer.cs
...change.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
+8
-7
No files found.
StackExchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
View file @
e46c73d5
...
...
@@ -276,6 +276,7 @@ internal bool HasDnsEndPoints()
return
false
;
}
#pragma warning disable 1998 // NET40 is sync, not async, currently
internal
async
Task
ResolveEndPointsAsync
(
ConnectionMultiplexer
multiplexer
,
TextWriter
log
)
{
Dictionary
<
string
,
IPAddress
>
cache
=
new
Dictionary
<
string
,
IPAddress
>(
StringComparer
.
InvariantCultureIgnoreCase
);
...
...
@@ -320,7 +321,7 @@ internal async Task ResolveEndPointsAsync(ConnectionMultiplexer multiplexer, Tex
}
}
}
#pragma warning restore 1998
static
void
Append
(
StringBuilder
sb
,
object
value
)
{
if
(
value
==
null
)
return
;
...
...
StackExchange.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
View file @
e46c73d5
...
...
@@ -9,9 +9,10 @@
using
System.Text
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Runtime.CompilerServices
;
#if NET40
using
Microsoft.Runtime.CompilerServices
;
#else
using
System.Runtime.CompilerServices
;
#endif
namespace
StackExchange.Redis
...
...
@@ -95,7 +96,7 @@ internal void OnConnectionFailed(EndPoint endpoint, ConnectionType connectionTyp
ReconfigureIfNeeded
(
endpoint
,
false
,
"connection failed"
);
}
}
internal
void
OnInternalError
(
Exception
exception
,
EndPoint
endpoint
=
null
,
ConnectionType
connectionType
=
ConnectionType
.
None
,
[
CallerMemberName
]
string
origin
=
null
)
internal
void
OnInternalError
(
Exception
exception
,
EndPoint
endpoint
=
null
,
ConnectionType
connectionType
=
ConnectionType
.
None
,
[
System
.
Runtime
.
CompilerServices
.
CallerMemberName
]
string
origin
=
null
)
{
try
{
...
...
@@ -930,12 +931,12 @@ public IServer GetServer(EndPoint endpoint, object asyncState = null)
[
Conditional
(
"VERBOSE"
)]
internal
void
Trace
(
string
message
,
[
CallerMemberName
]
string
category
=
null
)
internal
void
Trace
(
string
message
,
[
System
.
Runtime
.
CompilerServices
.
CallerMemberName
]
string
category
=
null
)
{
OnTrace
(
message
,
category
);
}
[
Conditional
(
"VERBOSE"
)]
internal
void
Trace
(
bool
condition
,
string
message
,
[
CallerMemberName
]
string
category
=
null
)
internal
void
Trace
(
bool
condition
,
string
message
,
[
System
.
Runtime
.
CompilerServices
.
CallerMemberName
]
string
category
=
null
)
{
if
(
condition
)
OnTrace
(
message
,
category
);
}
...
...
@@ -944,12 +945,12 @@ internal void Trace(bool condition, string message, [CallerMemberName] string ca
static
partial
void
OnTraceWithoutContext
(
string
message
,
string
category
);
[
Conditional
(
"VERBOSE"
)]
internal
static
void
TraceWithoutContext
(
string
message
,
[
CallerMemberName
]
string
category
=
null
)
internal
static
void
TraceWithoutContext
(
string
message
,
[
System
.
Runtime
.
CompilerServices
.
CallerMemberName
]
string
category
=
null
)
{
OnTraceWithoutContext
(
message
,
category
);
}
[
Conditional
(
"VERBOSE"
)]
internal
static
void
TraceWithoutContext
(
bool
condition
,
string
message
,
[
CallerMemberName
]
string
category
=
null
)
internal
static
void
TraceWithoutContext
(
bool
condition
,
string
message
,
[
System
.
Runtime
.
CompilerServices
.
CallerMemberName
]
string
category
=
null
)
{
if
(
condition
)
OnTraceWithoutContext
(
message
,
category
);
}
...
...
@@ -1302,7 +1303,7 @@ internal async Task<bool> ReconfigureAsync(bool first, bool reconfigureAll, Text
}
}
partial
void
OnTraceLog
(
TextWriter
log
,
[
CallerMemberName
]
string
caller
=
null
);
partial
void
OnTraceLog
(
TextWriter
log
,
[
System
.
Runtime
.
CompilerServices
.
CallerMemberName
]
string
caller
=
null
);
private
async
Task
<
ServerEndPoint
>
NominatePreferredMaster
(
TextWriter
log
,
ServerEndPoint
[]
servers
,
bool
useTieBreakers
,
Task
<
string
>[]
tieBreakers
,
List
<
ServerEndPoint
>
masters
)
{
Dictionary
<
string
,
int
>
uniques
=
null
;
...
...
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