Former-commit-id: 0db9fb092b28553efe7de8e8c100e0584d877d04
TangShanKaiPing
wanggang 5 years ago
parent ba6a738d77
commit a23d5cc947

@ -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
{

Loading…
Cancel
Save