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
a4df51b8
Commit
a4df51b8
authored
Mar 25, 2016
by
DeepakVerma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move clientname default value to configuration manager.
parent
3d48e200
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ConfigurationOptions.cs
...xchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
+1
-1
ConnectionMultiplexer.cs
...change.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
+1
-1
No files found.
StackExchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
View file @
a4df51b8
...
@@ -162,7 +162,7 @@ public static string TryNormalize(string value)
...
@@ -162,7 +162,7 @@ public static string TryNormalize(string value)
/// <summary>
/// <summary>
/// The client name to use for all connections
/// The client name to use for all connections
/// </summary>
/// </summary>
public
string
ClientName
{
get
{
return
clientName
??
(
clientName
=
AzureRoleInstanceId
);
}
set
{
clientName
=
value
;
}
}
public
string
ClientName
{
get
{
return
clientName
??
(
clientName
=
(
AzureRoleInstanceId
!=
null
?
AzureRoleInstanceId
:
Environment
.
GetEnvironmentVariable
(
"ComputerName"
))
);
}
set
{
clientName
=
value
;
}
}
/// <summary>
/// <summary>
/// The number of times to repeat the initial connect cycle if no servers respond promptly
/// The number of times to repeat the initial connect cycle if no servers respond promptly
...
...
StackExchange.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
View file @
a4df51b8
...
@@ -91,7 +91,7 @@ public ServerCounters GetCounters()
...
@@ -91,7 +91,7 @@ public ServerCounters GetCounters()
/// <summary>
/// <summary>
/// Gets the client-name that will be used on all new connections
/// Gets the client-name that will be used on all new connections
/// </summary>
/// </summary>
public
string
ClientName
=>
configuration
.
ClientName
??
Environment
.
GetEnvironmentVariable
(
"ComputerName"
)
;
public
string
ClientName
=>
configuration
.
ClientName
;
/// <summary>
/// <summary>
/// Gets the configuration of the connection
/// Gets the configuration of the connection
...
...
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