|
|
|
@ -183,27 +183,6 @@ namespace Infrastructure.Web
|
|
|
|
|
signalRBuilder = signalRBuilder.AddStackExchangeRedis(Configuration.GetConnectionString("redis"), o =>
|
|
|
|
|
{
|
|
|
|
|
o.Configuration.ChannelPrefix = this.Configuration.GetValue("BasePath", Assembly.GetEntryAssembly().GetName().Name);
|
|
|
|
|
//o.ConnectionFactory = async writer =>
|
|
|
|
|
//{
|
|
|
|
|
// var config = new ConfigurationOptions
|
|
|
|
|
// {
|
|
|
|
|
// AbortOnConnectFail = false
|
|
|
|
|
// };
|
|
|
|
|
// config.EndPoints.Add(IPAddress.Loopback, 0);
|
|
|
|
|
// config.SetDefaultPorts();
|
|
|
|
|
// var connection = await ConnectionMultiplexer.ConnectAsync(config, writer);
|
|
|
|
|
// connection.ConnectionFailed += (_, e) =>
|
|
|
|
|
// {
|
|
|
|
|
// Console.WriteLine("Connection to Redis failed.");
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// if (!connection.IsConnected)
|
|
|
|
|
// {
|
|
|
|
|
// Console.WriteLine("Did not connect to Redis.");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// return connection;
|
|
|
|
|
//};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|