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
dce0f8ff
Commit
dce0f8ff
authored
Nov 13, 2015
by
Jeremy Meng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add FEATURE_SERIALIZATION and FEATURE_SOCKET_MODE_POLL.
parent
c6772180
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
28 deletions
+28
-28
StackExchange.Redis.StrongName.csproj
StackExchange.Redis/StackExchange.Redis.StrongName.csproj
+5
-5
StackExchange.Redis.csproj
StackExchange.Redis/StackExchange.Redis.csproj
+5
-5
ConnectionMultiplexer.cs
...change.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
+2
-2
PhysicalConnection.cs
...kExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
+1
-1
SocketManager.NoPoll.cs
...xchange.Redis/StackExchange/Redis/SocketManager.NoPoll.cs
+1
-1
SocketManager.Poll.cs
...kExchange.Redis/StackExchange/Redis/SocketManager.Poll.cs
+2
-2
StackExchange.Redis_Net40.StrongName.csproj
...e.Redis_Net40/StackExchange.Redis_Net40.StrongName.csproj
+3
-3
StackExchange.Redis_Net40.csproj
StackExchange.Redis_Net40/StackExchange.Redis_Net40.csproj
+3
-3
StackExchange.Redis_Net46.StrongName.csproj
...e.Redis_Net46/StackExchange.Redis_Net46.StrongName.csproj
+3
-3
StackExchange.Redis_Net46.csproj
StackExchange.Redis_Net46/StackExchange.Redis_Net46.csproj
+3
-3
No files found.
StackExchange.Redis/StackExchange.Redis.StrongName.csproj
View file @
dce0f8ff
...
...
@@ -17,7 +17,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin.snk\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;STRONG_NAME FEATURE_SERIALIZATION
;
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;STRONG_NAME FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -27,7 +27,7 @@
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin.snk\Release\
</OutputPath>
<DefineConstants>
TRACE;STRONG_NAME FEATURE_SERIALIZATION
</DefineConstants>
<DefineConstants>
TRACE;STRONG_NAME FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -36,7 +36,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Verbose|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin.snk\Verbose\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;VERBOSE STRONG_NAME
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;VERBOSE STRONG_NAME
FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin.snk\Verbose\StackExchange.Redis.StrongName.xml
</DocumentationFile>
<DebugType>
full
</DebugType>
...
...
@@ -48,7 +48,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Log Output|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin.snk\LogOutput\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;LOGOUTPUT STRONG_NAME
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;LOGOUTPUT STRONG_NAME
FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin.snk\LogOutput\StackExchange.Redis.StrongName.xml
</DocumentationFile>
<DebugType>
full
</DebugType>
...
...
@@ -64,7 +64,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<OutputPath>
bin\Mono\
</OutputPath>
<DefineConstants>
TRACE;STRONG_NAME
</DefineConstants>
<DefineConstants>
TRACE;STRONG_NAME
FEATURE_SERIALIZATION
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin.snk\Release\StackExchange.Redis.StrongName.xml
</DocumentationFile>
<Optimize>
true
</Optimize>
...
...
StackExchange.Redis/StackExchange.Redis.csproj
View file @
dce0f8ff
...
...
@@ -17,7 +17,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;FEATURE_SERIALIZATION
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -27,7 +27,7 @@
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE;FEATURE_SERIALIZATION
</DefineConstants>
<DefineConstants>
TRACE;FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -36,7 +36,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Verbose|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\Verbose\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;VERBOSE
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;VERBOSE
;FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin\Debug\StackExchange.Redis.xml
</DocumentationFile>
<DebugType>
full
</DebugType>
...
...
@@ -48,7 +48,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Log Output|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\Log Output\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;LOGOUTPUT
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;LOGOUTPUT
FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin\Debug\StackExchange.Redis.xml
</DocumentationFile>
<DebugType>
full
</DebugType>
...
...
@@ -58,7 +58,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<OutputPath>
bin\Mono\
</OutputPath>
<DefineConstants>
TRACE;__MonoCS__
</DefineConstants>
<DefineConstants>
TRACE;__MonoCS__
FEATURE_SERIALIZATION
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin\Release\StackExchange.Redis.xml
</DocumentationFile>
<Optimize>
true
</Optimize>
...
...
StackExchange.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
View file @
dce0f8ff
...
...
@@ -1887,7 +1887,7 @@ internal T ExecuteSyncImpl<T>(Message message, ResultProcessor<T> processor, Ser
else
{
int
inst
,
qu
,
qs
,
qc
,
wr
,
wq
,
@in
,
ar
;
#if
!__MonoCS__ && !DNXCORE50
#if
FEATURE_SOCKET_MODE_POLL
var
mgrState
=
socketManager
.
State
;
var
lastError
=
socketManager
.
LastErrorTimeRelative
();
...
...
@@ -1902,7 +1902,7 @@ internal T ExecuteSyncImpl<T>(Message message, ResultProcessor<T> processor, Ser
int
queue
=
server
.
GetOutstandingCount
(
message
.
Command
,
out
inst
,
out
qu
,
out
qs
,
out
qc
,
out
wr
,
out
wq
,
out
@in
,
out
ar
);
add
(
"Instantaneous"
,
"inst"
,
inst
.
ToString
());
#if
!__MonoCS__ && !DNXCORE50
#if
FEATURE_SOCKET_MODE_POLL
add
(
"Manager-State"
,
"mgr"
,
mgrState
.
ToString
());
add
(
"Last-Error"
,
"err"
,
lastError
);
#endif
...
...
StackExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
View file @
dce0f8ff
...
...
@@ -231,7 +231,7 @@ public void RecordConnectionFailed(ConnectionFailureType failureType, ref Socket
add
(
"Last-Heartbeat"
,
"last-heartbeat"
,
(
lastBeat
==
0
?
"never"
:
(
unchecked
(
now
-
lastBeat
)/
1000
+
"s ago"
))+
(
bridge
.
IsBeating
?
" (mid-beat)"
:
""
)
);
add
(
"Last-Multiplexer-Heartbeat"
,
"last-mbeat"
,
multiplexer
.
LastHeartbeatSecondsAgo
+
"s ago"
);
add
(
"Last-Global-Heartbeat"
,
"global"
,
ConnectionMultiplexer
.
LastGlobalHeartbeatSecondsAgo
+
"s ago"
);
#if
!__MonoCS__ && !DNXCORE50
#if
FEATURE_SOCKET_MODE_POLL
var
mgr
=
bridge
.
Multiplexer
.
SocketManager
;
add
(
"SocketManager-State"
,
"mgr"
,
mgr
.
State
.
ToString
());
add
(
"Last-Error"
,
"err"
,
mgr
.
LastErrorTimeRelative
());
...
...
StackExchange.Redis/StackExchange/Redis/SocketManager.NoPoll.cs
View file @
dce0f8ff
#
if
__MonoCS__
||
DNXCORE50
#
if
!
FEATURE_SOCKET_MODE_POLL
namespace
StackExchange.Redis
{
...
...
StackExchange.Redis/StackExchange/Redis/SocketManager.Poll.cs
View file @
dce0f8ff
using
System
;
#
if
FEATURE_SOCKET_MODE_POLL
using
System
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Net.Sockets
;
using
System.Runtime.InteropServices
;
using
System.Threading
;
#if !__MonoCS__ && !DNXCORE50
namespace
StackExchange.Redis
{
...
...
StackExchange.Redis_Net40/StackExchange.Redis_Net40.StrongName.csproj
View file @
dce0f8ff
...
...
@@ -17,7 +17,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin.snk\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;NET40 STRONG_NAME FEATURE_SERIALIZATION
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;NET40 STRONG_NAME FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -28,7 +28,7 @@
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin.snk\Release\
</OutputPath>
<DefineConstants>
TRACE;NET40 STRONG_NAME FEATURE_SERIALIZATION
</DefineConstants>
<DefineConstants>
TRACE;NET40 STRONG_NAME FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
...
...
@@ -43,7 +43,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<OutputPath>
bin\Mono\
</OutputPath>
<DefineConstants>
TRACE;NET40 STRONG_NAME
</DefineConstants>
<DefineConstants>
TRACE;NET40 STRONG_NAME
FEATURE_SERIALIZATION
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin.snk\Release\StackExchange.Redis.StrongName.xml
</DocumentationFile>
<Optimize>
true
</Optimize>
...
...
StackExchange.Redis_Net40/StackExchange.Redis_Net40.csproj
View file @
dce0f8ff
...
...
@@ -17,7 +17,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;NET40 FEATURE_SERIALIZATION
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;NET40 FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -28,7 +28,7 @@
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE;NET40 FEATURE_SERIALIZATION
</DefineConstants>
<DefineConstants>
TRACE;NET40 FEATURE_SERIALIZATION
FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
...
...
@@ -37,7 +37,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<OutputPath>
bin\Mono\
</OutputPath>
<DefineConstants>
TRACE;NET40
</DefineConstants>
<DefineConstants>
TRACE;NET40
FEATURE_SERIALIZATION
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin\Release\StackExchange.Redis.xml
</DocumentationFile>
<Optimize>
true
</Optimize>
...
...
StackExchange.Redis_Net46/StackExchange.Redis_Net46.StrongName.csproj
View file @
dce0f8ff
...
...
@@ -18,7 +18,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin.snk\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;NET46 PLAT_SAFE_CONTINUATIONS STRONG_NAME
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;NET46 PLAT_SAFE_CONTINUATIONS STRONG_NAME
FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -30,7 +30,7 @@
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin.snk\Release\
</OutputPath>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS STRONG_NAME
</DefineConstants>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS STRONG_NAME
FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
...
...
@@ -46,7 +46,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<OutputPath>
bin\Mono\
</OutputPath>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS STRONG_NAME
</DefineConstants>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS STRONG_NAME
FEATURE_SERIALIZATION
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin.snk\Release\StackExchange.Redis.StrongName.xml
</DocumentationFile>
<Optimize>
true
</Optimize>
...
...
StackExchange.Redis_Net46/StackExchange.Redis_Net46.csproj
View file @
dce0f8ff
...
...
@@ -18,7 +18,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;NET46 PLAT_SAFE_CONTINUATIONS
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;NET46 PLAT_SAFE_CONTINUATIONS
FEATURE_SERIALIZATION;FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -30,7 +30,7 @@
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS
</DefineConstants>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS
FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<UseVSHostingProcess>
false
</UseVSHostingProcess>
...
...
@@ -40,7 +40,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<OutputPath>
bin\Mono\
</OutputPath>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS
</DefineConstants>
<DefineConstants>
TRACE;NET46 PLAT_SAFE_CONTINUATIONS
FEATURE_SERIALIZATION
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<DocumentationFile>
bin\Release\StackExchange.Redis.xml
</DocumentationFile>
<Optimize>
true
</Optimize>
...
...
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