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
e4a01848
Commit
e4a01848
authored
Sep 19, 2015
by
Jeremy Meng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude platform-specific code for NetCore. Remove usage of unsupported IClone interface.
parent
65e141ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
ConfigurationOptions.cs
...xchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
+9
-1
ConnectionMultiplexer.cs
...change.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
+1
-1
SocketManager.cs
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
+2
-0
No files found.
StackExchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
View file @
e4a01848
...
...
@@ -29,7 +29,10 @@ public enum Proxy
/// <summary>
/// The options relevant to a set of redis connections
/// </summary>
public
sealed
class
ConfigurationOptions
:
ICloneable
public
sealed
class
ConfigurationOptions
#if !NETCORE
:
ICloneable
#endif
{
internal
const
string
DefaultTieBreaker
=
"__Booksleeve_TieBreak"
,
DefaultConfigurationChannel
=
"__Booksleeve_MasterChanged"
;
...
...
@@ -467,10 +470,13 @@ static void Append(StringBuilder sb, string prefix, object value)
}
}
#if !NETCORE
static
bool
IsOption
(
string
option
,
string
prefix
)
{
return
option
.
StartsWith
(
prefix
,
StringComparison
.
InvariantCultureIgnoreCase
);
}
#endif
void
Clear
()
{
clientName
=
serviceName
=
password
=
tieBreaker
=
sslHost
=
configChannel
=
null
;
...
...
@@ -486,7 +492,9 @@ void Clear()
SocketManager
=
null
;
}
#if !NETCORE
object
ICloneable
.
Clone
()
{
return
Clone
();
}
#endif
private
void
DoParse
(
string
configuration
,
bool
ignoreUnknown
)
{
...
...
StackExchange.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
View file @
e4a01848
...
...
@@ -1887,7 +1887,6 @@ internal T ExecuteSyncImpl<T>(Message message, ResultProcessor<T> processor, Ser
else
{
int
inst
,
qu
,
qs
,
qc
,
wr
,
wq
,
@in
,
ar
;
string
iocp
,
worker
;
#if !__MonoCS__
var
mgrState
=
socketManager
.
State
;
var
lastError
=
socketManager
.
LastErrorTimeRelative
();
...
...
@@ -1918,6 +1917,7 @@ internal T ExecuteSyncImpl<T>(Message message, ResultProcessor<T> processor, Ser
add
(
"Client-Name"
,
"clientName"
,
ClientName
);
#if !NETCORE
string
iocp
,
worker
;
int
busyWorkerCount
=
GetThreadPoolStats
(
out
iocp
,
out
worker
);
add
(
"ThreadPool-IO-Completion"
,
"IOCP"
,
iocp
);
add
(
"ThreadPool-Workers"
,
"WORKER"
,
worker
);
...
...
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
View file @
e4a01848
...
...
@@ -221,6 +221,7 @@ internal void SetFastLoopbackOption(Socket socket)
// SIO_LOOPBACK_FAST_PATH (http://msdn.microsoft.com/en-us/library/windows/desktop/jj841212%28v=vs.85%29.aspx)
// Speeds up localhost operations significantly. OK to apply to a socket that will not be hooked up to localhost,
// or will be subject to WFP filtering.
#if !NETCORE
const
int
SIO_LOOPBACK_FAST_PATH
=
-
1744830448
;
// windows only
...
...
@@ -234,6 +235,7 @@ internal void SetFastLoopbackOption(Socket socket)
socket
.
IOControl
(
SIO_LOOPBACK_FAST_PATH
,
optionInValue
,
null
);
}
}
#endif
}
internal
void
RequestWrite
(
PhysicalBridge
bridge
,
bool
forced
)
...
...
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