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
f298e0bb
Commit
f298e0bb
authored
Sep 26, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check lib dependencies before trying to connect
parent
dcd8ad6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
ConnectionMultiplexer.cs
src/StackExchange.Redis/ConnectionMultiplexer.cs
+17
-4
StackExchange.Redis.csproj
src/StackExchange.Redis/StackExchange.Redis.csproj
+1
-1
No files found.
src/StackExchange.Redis/ConnectionMultiplexer.cs
View file @
f298e0bb
...
...
@@ -12,6 +12,7 @@
using
System.IO.Compression
;
using
System.Runtime.CompilerServices
;
using
StackExchange.Redis.Profiling
;
using
Pipelines.Sockets.Unofficial
;
namespace
StackExchange.Redis
{
...
...
@@ -803,7 +804,10 @@ internal ServerEndPoint AnyConnected(ServerType serverType, uint startOffset, Re
/// <param name="configuration">The string configuration to use for this multiplexer.</param>
/// <param name="log">The <see cref="TextWriter"/> to log to.</param>
public
static
Task
<
ConnectionMultiplexer
>
ConnectAsync
(
string
configuration
,
TextWriter
log
=
null
)
=>
ConnectImplAsync
(
configuration
,
log
);
{
SocketConnection
.
AssertDependencies
();
return
ConnectImplAsync
(
configuration
,
log
);
}
private
static
async
Task
<
ConnectionMultiplexer
>
ConnectImplAsync
(
object
configuration
,
TextWriter
log
=
null
)
{
...
...
@@ -835,7 +839,10 @@ private static async Task<ConnectionMultiplexer> ConnectImplAsync(object configu
/// <param name="configuration">The configuration options to use for this multiplexer.</param>
/// <param name="log">The <see cref="TextWriter"/> to log to.</param>
public
static
Task
<
ConnectionMultiplexer
>
ConnectAsync
(
ConfigurationOptions
configuration
,
TextWriter
log
=
null
)
=>
ConnectImplAsync
(
configuration
,
log
);
{
SocketConnection
.
AssertDependencies
();
return
ConnectImplAsync
(
configuration
,
log
);
}
internal
static
ConfigurationOptions
PrepareConfig
(
object
configuration
)
{
...
...
@@ -892,7 +899,10 @@ private static ConnectionMultiplexer CreateMultiplexer(object configuration, Tex
/// <param name="configuration">The string configuration to use for this multiplexer.</param>
/// <param name="log">The <see cref="TextWriter"/> to log to.</param>
public
static
ConnectionMultiplexer
Connect
(
string
configuration
,
TextWriter
log
=
null
)
=>
ConnectImpl
(
configuration
,
log
);
{
SocketConnection
.
AssertDependencies
();
return
ConnectImpl
(
configuration
,
log
);
}
/// <summary>
/// Create a new ConnectionMultiplexer instance
...
...
@@ -900,7 +910,10 @@ public static ConnectionMultiplexer Connect(string configuration, TextWriter log
/// <param name="configuration">The configurtion options to use for this multiplexer.</param>
/// <param name="log">The <see cref="TextWriter"/> to log to.</param>
public
static
ConnectionMultiplexer
Connect
(
ConfigurationOptions
configuration
,
TextWriter
log
=
null
)
=>
ConnectImpl
(
configuration
,
log
);
{
SocketConnection
.
AssertDependencies
();
return
ConnectImpl
(
configuration
,
log
);
}
private
static
ConnectionMultiplexer
ConnectImpl
(
object
configuration
,
TextWriter
log
)
{
...
...
src/StackExchange.Redis/StackExchange.Redis.csproj
View file @
f298e0bb
...
...
@@ -15,7 +15,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="1.0.
0
" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="1.0.
5
" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="4.5.0" />
<PackageReference Include="System.IO.Pipelines" Version="4.5.1" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
...
...
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