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
b60c5568
Commit
b60c5568
authored
Jan 27, 2016
by
Nick Craver
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #338 from MichaCo/FixPlaformSpecifics
Using RuntimeInformation.IsOSPlatform for core clr builds
parents
e66eb10a
3184a798
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
project.json
StackExchange.Redis.StrongName/project.json
+2
-0
SocketManager.cs
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
+7
-5
project.json
StackExchange.Redis/project.json
+3
-1
No files found.
StackExchange.Redis.StrongName/project.json
View file @
b60c5568
...
...
@@ -68,6 +68,7 @@
"System.Reflection.Emit.Lightweight"
:
"4.0.1-beta-23516"
,
"System.Reflection.Primitives"
:
"4.0.1-beta-23516"
,
"System.Reflection.TypeExtensions"
:
"4.1.0-beta-23516"
,
"System.Runtime.InteropServices.RuntimeInformation"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.Algorithms"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.X509Certificates"
:
"4.0.0-beta-23516"
,
"System.Text.Encoding"
:
"4.0.11-beta-23516"
,
...
...
@@ -103,6 +104,7 @@
"System.Reflection.Emit.Lightweight"
:
"4.0.1-beta-23516"
,
"System.Reflection.Primitives"
:
"4.0.1-beta-23516"
,
"System.Reflection.TypeExtensions"
:
"4.1.0-beta-23516"
,
"System.Runtime.InteropServices.RuntimeInformation"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.Algorithms"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.X509Certificates"
:
"4.0.0-beta-23516"
,
"System.Text.Encoding"
:
"4.0.11-beta-23516"
,
...
...
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
View file @
b60c5568
...
...
@@ -4,6 +4,7 @@
using
System.IO
;
using
System.Net
;
using
System.Net.Sockets
;
using
System.Runtime.InteropServices
;
using
System.Threading
;
using
System.Threading.Tasks
;
...
...
@@ -265,11 +266,12 @@ internal void SetFastLoopbackOption(Socket socket)
#else
try
{
byte
[]
optionInValue
=
BitConverter
.
GetBytes
(
1
);
socket
.
IOControl
(
SIO_LOOPBACK_FAST_PATH
,
optionInValue
,
null
);
}
catch
(
PlatformNotSupportedException
)
{
// Ioctl is not supported on other platforms at the moment
if
(
RuntimeInformation
.
IsOSPlatform
(
OSPlatform
.
Windows
))
{
byte
[]
optionInValue
=
BitConverter
.
GetBytes
(
1
);
socket
.
IOControl
(
SIO_LOOPBACK_FAST_PATH
,
optionInValue
,
null
);
}
}
catch
(
SocketException
)
{
...
...
StackExchange.Redis/project.json
View file @
b60c5568
...
...
@@ -13,7 +13,7 @@
"dependencies"
:
{
},
"compilationOptions"
:
{
"allowUnsafe"
:
true
"allowUnsafe"
:
true
},
"frameworks"
:
{
"net40"
:
{
...
...
@@ -57,6 +57,7 @@
"System.Reflection.Emit.Lightweight"
:
"4.0.1-beta-23516"
,
"System.Reflection.Primitives"
:
"4.0.1-beta-23516"
,
"System.Reflection.TypeExtensions"
:
"4.1.0-beta-23516"
,
"System.Runtime.InteropServices.RuntimeInformation"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.Algorithms"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.X509Certificates"
:
"4.0.0-beta-23516"
,
"System.Text.Encoding"
:
"4.0.11-beta-23516"
,
...
...
@@ -92,6 +93,7 @@
"System.Reflection.Emit.Lightweight"
:
"4.0.1-beta-23516"
,
"System.Reflection.Primitives"
:
"4.0.1-beta-23516"
,
"System.Reflection.TypeExtensions"
:
"4.1.0-beta-23516"
,
"System.Runtime.InteropServices.RuntimeInformation"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.Algorithms"
:
"4.0.0-beta-23516"
,
"System.Security.Cryptography.X509Certificates"
:
"4.0.0-beta-23516"
,
"System.Text.Encoding"
:
"4.0.11-beta-23516"
,
...
...
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