Align ASP.NET Core path config names with latest
This commit is contained in:
Родитель
69d849cff7
Коммит
b441adb048
|
@ -44,12 +44,12 @@ namespace Microsoft.Bot.Builder.Integration.AspNet.Core
|
|||
if (options.EnableProactiveMessages)
|
||||
{
|
||||
applicationBuilder.Map(
|
||||
paths.BasePath + paths.ProactivePath,
|
||||
paths.BasePath + paths.ProactiveMessagesPath,
|
||||
botProactiveAppBuilder => botProactiveAppBuilder.Run(httpContext => { httpContext.Response.StatusCode = (int)HttpStatusCode.OK; return Task.CompletedTask; }));
|
||||
}
|
||||
|
||||
applicationBuilder.Map(
|
||||
paths.BasePath + paths.ActivitiesPath,
|
||||
paths.BasePath + paths.MessagesPath,
|
||||
botActivitiesAppBuilder => botActivitiesAppBuilder.Run(new BotActivitiesHandler(botFrameworkAdapter).HandleAsync));
|
||||
|
||||
return applicationBuilder;
|
||||
|
|
|
@ -10,12 +10,12 @@ namespace Microsoft.Bot.Builder.Integration.AspNet.Core
|
|||
public BotFrameworkPaths()
|
||||
{
|
||||
this.BasePath = "/api";
|
||||
this.ActivitiesPath = "/messages";
|
||||
this.ProactivePath = "/messages/proactive";
|
||||
this.MessagesPath = "/messages";
|
||||
this.ProactiveMessagesPath = "/messages/proactive";
|
||||
}
|
||||
|
||||
public PathString BasePath { get; set; }
|
||||
public PathString ActivitiesPath { get; set; }
|
||||
public PathString ProactivePath { get; set; }
|
||||
public PathString MessagesPath { get; set; }
|
||||
public PathString ProactiveMessagesPath { get; set; }
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче