diff --git a/projects/Infrastructure/Web/BaseStartup.cs b/projects/Infrastructure/Web/BaseStartup.cs index 0990f901..39677822 100644 --- a/projects/Infrastructure/Web/BaseStartup.cs +++ b/projects/Infrastructure/Web/BaseStartup.cs @@ -186,7 +186,7 @@ namespace Infrastructure.Web { signalRBuilder = signalRBuilder.AddStackExchangeRedis(Configuration.GetConnectionString("redis"), o => { - o.Configuration.ChannelPrefix = "iot"; + o.Configuration.ChannelPrefix = this.Configuration.GetValue("BasePath", Assembly.GetEntryAssembly().GetName().Name); //o.ConnectionFactory = async writer => //{ // var config = new ConfigurationOptions @@ -340,7 +340,7 @@ namespace Infrastructure.Web app.UseExceptionHandler("/Error"); app.UseStatusCodePagesWithReExecute("/Error"); } - string basePath = this.Configuration.GetValue("BasePath", ""); + string basePath = this.Configuration.GetValue("BasePath", Assembly.GetEntryAssembly().GetName().Name); app.UsePathBase(basePath); app.UseForwardedHeaders(new ForwardedHeadersOptions {