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
1236e152
Commit
1236e152
authored
Sep 19, 2015
by
Jeremy Meng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add FEATURE_SERIALIZATION constant.
parent
a1e7ac2f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
616 additions
and
600 deletions
+616
-600
StackExchange.Redis.StrongName.csproj
StackExchange.Redis/StackExchange.Redis.StrongName.csproj
+200
-200
StackExchange.Redis.csproj
StackExchange.Redis/StackExchange.Redis.csproj
+2
-2
Message.cs
StackExchange.Redis/StackExchange/Redis/Message.cs
+21
-5
StackExchange.Redis_Net40.StrongName.csproj
...e.Redis_Net40/StackExchange.Redis_Net40.StrongName.csproj
+198
-198
StackExchange.Redis_Net40.csproj
StackExchange.Redis_Net40/StackExchange.Redis_Net40.csproj
+195
-195
No files found.
StackExchange.Redis/StackExchange.Redis.StrongName.csproj
View file @
1236e152
This diff is collapsed.
Click to expand it.
StackExchange.Redis/StackExchange.Redis.csproj
View file @
1236e152
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG
</DefineConstants>
<DefineConstants>
TRACE;DEBUG
;FEATURE_SERIALIZATION
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<DebugType>
pdbonly
</DebugType>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<DefineConstants>
TRACE
;FEATURE_SERIALIZATION
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
StackExchange.Redis/StackExchange/Redis/Message.cs
View file @
1236e152
...
@@ -11,22 +11,29 @@ namespace StackExchange.Redis
...
@@ -11,22 +11,29 @@ namespace StackExchange.Redis
/// <summary>
/// <summary>
/// Indicates that a command was illegal and was not sent to the server
/// Indicates that a command was illegal and was not sent to the server
/// </summary>
/// </summary>
#if FEATURE_SERIALIZATION
[
Serializable
]
[
Serializable
]
#endif
public
sealed
class
RedisCommandException
:
Exception
public
sealed
class
RedisCommandException
:
Exception
{
{
#if FEATURE_SERIALIZATION
private
RedisCommandException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
{
}
private
RedisCommandException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
{
}
#endif
internal
RedisCommandException
(
string
message
)
:
base
(
message
)
{
}
internal
RedisCommandException
(
string
message
)
:
base
(
message
)
{
}
internal
RedisCommandException
(
string
message
,
Exception
innerException
)
:
base
(
message
,
innerException
)
{
}
internal
RedisCommandException
(
string
message
,
Exception
innerException
)
:
base
(
message
,
innerException
)
{
}
}
}
/// <summary>
/// <summary>
/// Indicates a connection fault when communicating with redis
/// Indicates a connection fault when communicating with redis
/// </summary>
/// </summary>
#if FEATURE_SERIALIZATION
[
Serializable
]
[
Serializable
]
#endif
public
sealed
class
RedisConnectionException
:
RedisException
public
sealed
class
RedisConnectionException
:
RedisException
{
{
#if FEATURE_SERIALIZATION
private
RedisConnectionException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
private
RedisConnectionException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
{
{
this
.
FailureType
=
(
ConnectionFailureType
)
info
.
GetInt32
(
"failureType"
);
this
.
FailureType
=
(
ConnectionFailureType
)
info
.
GetInt32
(
"failureType"
);
...
@@ -39,6 +46,7 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
...
@@ -39,6 +46,7 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
base
.
GetObjectData
(
info
,
context
);
base
.
GetObjectData
(
info
,
context
);
info
.
AddValue
(
"failureType"
,
(
int
)
this
.
FailureType
);
info
.
AddValue
(
"failureType"
,
(
int
)
this
.
FailureType
);
}
}
#endif
internal
RedisConnectionException
(
ConnectionFailureType
failureType
,
string
message
)
:
base
(
message
)
internal
RedisConnectionException
(
ConnectionFailureType
failureType
,
string
message
)
:
base
(
message
)
{
{
...
@@ -54,28 +62,36 @@ internal RedisConnectionException(ConnectionFailureType failureType, string mess
...
@@ -54,28 +62,36 @@ internal RedisConnectionException(ConnectionFailureType failureType, string mess
/// </summary>
/// </summary>
public
ConnectionFailureType
FailureType
{
get
;
private
set
;
}
public
ConnectionFailureType
FailureType
{
get
;
private
set
;
}
}
}
/// <summary>
/// <summary>
/// Indicates an issue communicating with redis
/// Indicates an issue communicating with redis
/// </summary>
/// </summary>
#if FEATURE_SERIALIZATION
[
Serializable
]
[
Serializable
]
#endif
public
class
RedisException
:
Exception
public
class
RedisException
:
Exception
{
{
/// <summary>
/// <summary>
/// Deserialization constructor; not intended for general usage
/// Deserialization constructor; not intended for general usage
/// </summary>
/// </summary>
#if FEATURE_SERIALIZATION
protected
RedisException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
{
}
protected
RedisException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
{
}
#endif
internal
RedisException
(
string
message
)
:
base
(
message
)
{
}
internal
RedisException
(
string
message
)
:
base
(
message
)
{
}
internal
RedisException
(
string
message
,
Exception
innerException
)
:
base
(
message
,
innerException
)
{
}
internal
RedisException
(
string
message
,
Exception
innerException
)
:
base
(
message
,
innerException
)
{
}
}
}
/// <summary>
/// <summary>
/// Indicates an exception raised by a redis server
/// Indicates an exception raised by a redis server
/// </summary>
/// </summary>
#if FEATURE_SERIALIZATION
[
Serializable
]
[
Serializable
]
#endif
public
sealed
class
RedisServerException
:
RedisException
public
sealed
class
RedisServerException
:
RedisException
{
{
#if FEATURE_SERIALIZATION
private
RedisServerException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
{
}
private
RedisServerException
(
SerializationInfo
info
,
StreamingContext
ctx
)
:
base
(
info
,
ctx
)
{
}
#endif
internal
RedisServerException
(
string
message
)
:
base
(
message
)
{
}
internal
RedisServerException
(
string
message
)
:
base
(
message
)
{
}
}
}
...
...
StackExchange.Redis_Net40/StackExchange.Redis_Net40.StrongName.csproj
View file @
1236e152
This diff is collapsed.
Click to expand it.
StackExchange.Redis_Net40/StackExchange.Redis_Net40.csproj
View file @
1236e152
This diff is collapsed.
Click to expand it.
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