more....
This commit is contained in:
parent
c94d912f8b
commit
c6f3bee4de
@ -24,7 +24,7 @@ namespace BinaryDad.Coding
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddMvc();
|
||||
services.AddSignalR().AddStackExchangeRedis("redis", options =>
|
||||
services.AddSignalR().AddStackExchangeRedis(options =>
|
||||
{
|
||||
options.ConnectionFactory = async writer =>
|
||||
{
|
||||
@ -32,7 +32,7 @@ namespace BinaryDad.Coding
|
||||
{
|
||||
AbortOnConnectFail = false
|
||||
};
|
||||
config.EndPoints.Add(IPAddress.Loopback, 0);
|
||||
config.EndPoints.Add("redis:6379");
|
||||
config.SetDefaultPorts();
|
||||
var connection = await ConnectionMultiplexer.ConnectAsync(config, writer);
|
||||
connection.ConnectionFailed += (_, e) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user