|
|
|
@ -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<String>("BasePath", "");
|
|
|
|
|
string basePath = this.Configuration.GetValue<String>("BasePath", Assembly.GetEntryAssembly().GetName().Name);
|
|
|
|
|
app.UsePathBase(basePath);
|
|
|
|
|
app.UseForwardedHeaders(new ForwardedHeadersOptions
|
|
|
|
|
{
|
|
|
|
|