Align ASP.NET Core path config names with latest

This commit is contained in:
Drew Marsh 2018-03-06 16:33:51 -08:00
Родитель 69d849cff7
Коммит b441adb048
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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; }
}
}