more tweaks...
This commit is contained in:
parent
baba3bd6c2
commit
fc5098c012
@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using StackExchange.Redis;
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace BinaryDad.Coding
|
||||
{
|
||||
@ -31,11 +32,9 @@ namespace BinaryDad.Coding
|
||||
{
|
||||
AbortOnConnectFail = false
|
||||
};
|
||||
|
||||
//config.SetDefaultPorts();
|
||||
|
||||
config.EndPoints.Add(IPAddress.Loopback, 0);
|
||||
config.SetDefaultPorts();
|
||||
var connection = await ConnectionMultiplexer.ConnectAsync(config, writer);
|
||||
|
||||
connection.ConnectionFailed += (_, e) =>
|
||||
{
|
||||
Console.WriteLine("Connection to Redis failed.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user