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