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
2bc2fb8f
Commit
2bc2fb8f
authored
Dec 10, 2015
by
Marc Gravell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #298 from Nigrimmist/SmallFixes
small fixes
parents
98dbfd4b
3d4d9a62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
TestBase.cs
StackExchange.Redis.Tests/TestBase.cs
+1
-1
Format.cs
StackExchange.Redis/StackExchange/Redis/Format.cs
+1
-1
RedisDatabase.cs
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
+1
-1
No files found.
StackExchange.Redis.Tests/TestBase.cs
View file @
2bc2fb8f
...
@@ -243,7 +243,7 @@ private static RedisConnection GetOldStyleConnection(string host, int port, bool
...
@@ -243,7 +243,7 @@ private static RedisConnection GetOldStyleConnection(string host, int port, bool
protected
static
TimeSpan
RunConcurrent
(
Action
work
,
int
threads
,
int
timeout
=
10000
,
[
CallerMemberName
]
string
caller
=
null
)
protected
static
TimeSpan
RunConcurrent
(
Action
work
,
int
threads
,
int
timeout
=
10000
,
[
CallerMemberName
]
string
caller
=
null
)
{
{
if
(
work
==
null
)
throw
new
ArgumentNullException
(
"work"
);
if
(
work
==
null
)
throw
new
ArgumentNullException
(
"work"
);
if
(
threads
<
1
)
throw
new
ArgumentOutOfRangeException
(
"theads"
);
if
(
threads
<
1
)
throw
new
ArgumentOutOfRangeException
(
"th
r
eads"
);
if
(
string
.
IsNullOrWhiteSpace
(
caller
))
caller
=
Me
();
if
(
string
.
IsNullOrWhiteSpace
(
caller
))
caller
=
Me
();
Stopwatch
watch
=
null
;
Stopwatch
watch
=
null
;
ManualResetEvent
allDone
=
new
ManualResetEvent
(
false
);
ManualResetEvent
allDone
=
new
ManualResetEvent
(
false
);
...
...
StackExchange.Redis/StackExchange/Redis/Format.cs
View file @
2bc2fb8f
...
@@ -133,7 +133,7 @@ internal static bool TryGetHostPort(EndPoint endpoint, out string host, out int
...
@@ -133,7 +133,7 @@ internal static bool TryGetHostPort(EndPoint endpoint, out string host, out int
internal
static
bool
TryParseDouble
(
string
s
,
out
double
value
)
internal
static
bool
TryParseDouble
(
string
s
,
out
double
value
)
{
{
if
(
s
==
null
||
s
.
Length
==
0
)
if
(
s
tring
.
IsNullOrEmpty
(
s
)
)
{
{
value
=
0
;
value
=
0
;
return
false
;
return
false
;
...
...
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
View file @
2bc2fb8f
...
@@ -484,7 +484,7 @@ sealed class KeyMigrateCommandMessage : Message.CommandKeyBase // MIGRATE is aty
...
@@ -484,7 +484,7 @@ sealed class KeyMigrateCommandMessage : Message.CommandKeyBase // MIGRATE is aty
public
KeyMigrateCommandMessage
(
int
db
,
RedisKey
key
,
EndPoint
toServer
,
int
toDatabase
,
int
timeoutMilliseconds
,
MigrateOptions
migrateOptions
,
CommandFlags
flags
)
public
KeyMigrateCommandMessage
(
int
db
,
RedisKey
key
,
EndPoint
toServer
,
int
toDatabase
,
int
timeoutMilliseconds
,
MigrateOptions
migrateOptions
,
CommandFlags
flags
)
:
base
(
db
,
flags
,
RedisCommand
.
MIGRATE
,
key
)
:
base
(
db
,
flags
,
RedisCommand
.
MIGRATE
,
key
)
{
{
if
(
toServer
==
null
)
throw
new
ArgumentNullException
(
"
s
erver"
);
if
(
toServer
==
null
)
throw
new
ArgumentNullException
(
"
toS
erver"
);
string
toHost
;
string
toHost
;
int
toPort
;
int
toPort
;
if
(!
Format
.
TryGetHostPort
(
toServer
,
out
toHost
,
out
toPort
))
throw
new
ArgumentException
(
"toServer"
);
if
(!
Format
.
TryGetHostPort
(
toServer
,
out
toHost
,
out
toPort
))
throw
new
ArgumentException
(
"toServer"
);
...
...
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