diff --git a/projects/Infrastructure/Web/BaseStartup.cs b/projects/Infrastructure/Web/BaseStartup.cs index a642918c..c903aa40 100644 --- a/projects/Infrastructure/Web/BaseStartup.cs +++ b/projects/Infrastructure/Web/BaseStartup.cs @@ -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; - //}; }); } diff --git a/projects/Platform/Startup.cs b/projects/Platform/Startup.cs index 01a5fd22..cbf6119a 100644 --- a/projects/Platform/Startup.cs +++ b/projects/Platform/Startup.cs @@ -65,8 +65,7 @@ namespace Platform } else { - var connectionString = Configuration.GetConnectionString("job.sqlite"); - services.AddHangfire(o => o.UseSQLiteStorage(connectionString)); + services.AddHangfire(o => o.UseSQLiteStorage("job.db")); } services.AddReverseProxy().LoadFromConfig(Configuration.GetSection("ReverseProxy")); } diff --git a/projects/Platform/appsettings.Local.json b/projects/Platform/appsettings.Local.json index f3f10d43..9211d962 100644 --- a/projects/Platform/appsettings.Local.json +++ b/projects/Platform/appsettings.Local.json @@ -4,5 +4,6 @@ "cache": "", "fileserver": "", "jobdb": "" - } + }, + "useRedisSignalR": "false" } \ No newline at end of file diff --git a/projects/Platform/appsettings.json b/projects/Platform/appsettings.json index f69c4895..543e2be8 100644 --- a/projects/Platform/appsettings.json +++ b/projects/Platform/appsettings.json @@ -23,7 +23,6 @@ "sqlite": "Data Source=iotcenter.db", "mysql": "Server=localhost;Port=3306;Database=iotcenter;Uid=root;Pwd=aA123456!;", "job.mysql": "Server=localhost;Port=3306;Database=jobserver;Uid=root;Pwd=aA123456!;Allow User Variables=True;", - "job.sqlite": "Data Source=job.db", "redis": "localhost:6379,password=aA123456!,allowAdmin=true", "srs": "http://localhost:1985" },