Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
0137159
add deploy scripts
Aug 22, 2019
9fe9877
remove commented line.
Aug 22, 2019
ef098ba
rename the script and add environment.
Aug 28, 2019
ae3d864
add output
Aug 28, 2019
c8c1eb4
Merge branch 'master' into qika/deployment
luhan2017 Aug 28, 2019
19eb12b
add luis config.
Aug 28, 2019
f6bb7c9
Merge branch 'qika/deployment' of https://github.com/microsoft/BotFra…
Aug 29, 2019
b467113
add custom config from PR #719
Aug 29, 2019
3f40285
minor fix for comments.
Aug 29, 2019
f3813c0
Merge branch 'master' into qika/deployment
Aug 30, 2019
7e98cb3
Merge branch 'master' into qika/deployment
Sep 2, 2019
8734a6e
deploy steps in settings page
benbrown Sep 9, 2019
e2e65ee
add runtime generate script
Sep 10, 2019
ab7b4a5
update design of deploy wizard, include realistic commands, copy to c…
benbrown Sep 10, 2019
d7a5ab3
Merge branch 'master' of github.com:microsoft/BotFramework-Composer i…
benbrown Sep 10, 2019
7ddecf0
add currently open bot projects' path to the state
benbrown Sep 11, 2019
54f7240
remove admin controller for key managment, use script instead.
Sep 12, 2019
4cd6d18
add deployment runtime
Sep 18, 2019
1231860
use dotnet set user secrets command to set luis key and app password
Sep 18, 2019
d8e36f8
Merge branch 'qika/copycli' of https://github.com/microsoft/BotFramew…
Sep 18, 2019
db84996
add application insights deloyment template.
Sep 18, 2019
888b935
add cosmos db deployment
Sep 18, 2019
c637a1a
add error message for deploy script.
Sep 18, 2019
eaef1a3
delete scripts in local runtime. only keep scripts in deployment runt…
Sep 18, 2019
4c42f9b
add bot manager for local runtime
Sep 18, 2019
fcc6af3
add azure storage deployment
Sep 19, 2019
b4cbb52
change folder name
Sep 19, 2019
62b9511
Merge branch 'master' into qika/copycli
boydc2014 Sep 23, 2019
b53d310
Merge branch 'master' of github.com:microsoft/BotFramework-Composer i…
benbrown Sep 25, 2019
a301d4f
2 buttons on deploy screen
benbrown Sep 25, 2019
5338d3b
2 buttons on deploy screen
benbrown Sep 25, 2019
25e576b
reset the local runtime.
Sep 26, 2019
392f9e0
remove docker related file for templates.
Sep 26, 2019
fb14a50
change namespace.
Sep 26, 2019
d1fdbde
remove auto reloading in template runtime
Sep 26, 2019
deacf33
Merge branch 'qika/copycli' of https://github.com/microsoft/BotFramew…
Sep 26, 2019
062a23b
add settings check for cosmosdb && azure storage for tranScript
Sep 27, 2019
7d6a120
delete user secret id, change nuget settings.
Sep 27, 2019
61c4e6b
Merge branch 'master' into qika/copycli
luhan2017 Sep 29, 2019
ea230af
remove composerdata folder.
Sep 30, 2019
da07887
Merge branch 'qika/copycli' of https://github.com/microsoft/BotFramew…
Sep 30, 2019
271fc0e
init user secret.
Sep 30, 2019
ffc9f9e
include composerdialogs.
Sep 30, 2019
6829eb0
bot path is not necessary.
Sep 30, 2019
49dc202
remove debugger.
Sep 30, 2019
78ad38d
Merge branch 'master' of github.com:microsoft/BotFramework-Composer i…
benbrown Sep 30, 2019
f4fd0ec
Merge branch 'master' of github.com:microsoft/BotFramework-Composer i…
benbrown Oct 1, 2019
73c4bc2
Adjust new bot creation to include the runtime code
benbrown Oct 1, 2019
322b779
Merge branch 'master' of github.com:microsoft/BotFramework-Composer i…
benbrown Oct 1, 2019
6e58a23
update to validation, form values
benbrown Oct 1, 2019
d2f42f1
Merge branch 'master' into benbrown/newprojectfolder
benbrown Oct 8, 2019
0c2644b
Merge branch 'master' into benbrown/deploypage
benbrown Oct 8, 2019
6a350c4
Merge branch 'master' of github.com:microsoft/BotFramework-Composer i…
benbrown Oct 8, 2019
5443f79
Merge branch 'benbrown/deploypage' of github.com:microsoft/BotFramewo…
benbrown Oct 8, 2019
5608cd3
sync validators
benbrown Oct 8, 2019
9ceb2ed
Merge branch 'benbrown/deploypage' into benbrown/newprojectfolder
benbrown Oct 8, 2019
fe88f61
gif file
benbrown Oct 8, 2019
1f1d666
fix deploy script
benbrown Oct 8, 2019
1e7bfb0
Add support for copying files from the local folder
benbrown Oct 8, 2019
7f68774
Merge branch 'qika/copycli' of github.com:microsoft/BotFramework-Comp…
benbrown Oct 8, 2019
2040f23
add final GIF for deploy
benbrown Oct 8, 2019
bb4fb6e
Merge branch 'master' into benbrown/deploypage
cwhitten Oct 9, 2019
dd54b3b
move generated folder into ComposerDialogs
benbrown Oct 9, 2019
7ae28e0
Fix case of Scripts folder in deploy instructions
benbrown Oct 9, 2019
eabc1fd
Merge branch 'benbrown/deploypage' into benbrown/newprojectfolder
benbrown Oct 9, 2019
2a9fc49
ensure lu and dialog files end up inside the composerDialogs folder
benbrown Oct 9, 2019
daf5160
Merge branch 'master' into benbrown/newprojectfolder
yeze322 Oct 9, 2019
16df360
add luis feature
Oct 10, 2019
378656b
Merge from origin
Oct 10, 2019
e626833
Merge branch 'qika/copycli' of github.com:microsoft/BotFramework-Comp…
benbrown Oct 10, 2019
bc7473a
Update template-with-preexisting-rg.json
luhan2017 Oct 10, 2019
fb2fd23
complete luis feature.
Oct 11, 2019
eb1141f
Merge branch 'qika/copycli' of github.com:microsoft/BotFramework-Comp…
benbrown Oct 11, 2019
430429c
make sure bot content is loaded from ComposerDialogs
benbrown Oct 11, 2019
19607a3
make sure we read data out of composerdialogs
benbrown Oct 11, 2019
e35245e
use settings from project file to determine luis
benbrown Oct 11, 2019
c69ac48
Merge branch 'benbrown/newprojectfolder' of github.com:microsoft/BotF…
benbrown Oct 11, 2019
c6350e6
slightly adjust paths
benbrown Oct 11, 2019
794fe39
clean up
benbrown Oct 11, 2019
5c9fb4a
Merge branch 'master' of github.com:microsoft/BotFramework-Composer i…
benbrown Oct 11, 2019
394a744
fix path
benbrown Oct 11, 2019
3515b46
fix path
benbrown Oct 11, 2019
31e5a10
Merge branch 'master' into benbrown/newprojectfolder
cwhitten Oct 14, 2019
05f2a80
update assetmanager test to include runtime path
benbrown Oct 14, 2019
74b4bc5
add empty runtime
benbrown Oct 14, 2019
d48bbe9
adjust tests to compensate for new folders
benbrown Oct 14, 2019
42c5b96
update paths for test settings files
benbrown Oct 14, 2019
541abcb
fix linter error
benbrown Oct 14, 2019
a6e68df
update tests
benbrown Oct 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions BotProject/CSharp/BotManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.Reflection;
using System.Threading.Tasks;

namespace Microsoft.Bot.Builder.TestBot.Json
namespace Microsoft.Bot.Builder.ComposerBot.json
{
public interface IBotManager
{
Expand Down Expand Up @@ -71,7 +71,6 @@ public void SetCurrent(string botDir)
.UseState(userState, conversationState)
.UseLanguageGeneration(resourceExplorer)
.UseDebugger(4712)
.Use(new RegisterClassMiddleware<IConfiguration>(Config))
.Use(new InspectionMiddleware(inspectionState, userState, conversationState, credentials))
.UseResourceExplorer(resourceExplorer);

Expand All @@ -84,7 +83,7 @@ public void SetCurrent(string botDir)
};
CurrentAdapter = adapter;

CurrentBot = new TestBot("Main.dialog", conversationState, userState, resourceExplorer, DebugSupport.SourceRegistry);
CurrentBot = new ComposerBot("Main.dialog", conversationState, userState, resourceExplorer, DebugSupport.SourceRegistry);
}

public void SetCurrent(Stream fileStream, string endpointKey = null, string appPwd = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
using Newtonsoft.Json;


namespace Microsoft.Bot.Builder.TestBot.Json
namespace Microsoft.Bot.Builder.ComposerBot.json
{
public class TestBot : ActivityHandler
public class ComposerBot : ActivityHandler
{
private AdaptiveDialog rootDialog;
private readonly ResourceExplorer resourceExplorer;
Expand All @@ -31,7 +31,7 @@ public class TestBot : ActivityHandler
private Source.IRegistry registry;
private string rootDialogFile { get; set; }

public TestBot(string rootDialogFile, ConversationState conversationState, UserState userState, ResourceExplorer resourceExplorer, Source.IRegistry registry)
public ComposerBot(string rootDialogFile, ConversationState conversationState, UserState userState, ResourceExplorer resourceExplorer, Source.IRegistry registry)
{
this.conversationState = conversationState;
this.userState = userState;
Expand Down
2 changes: 0 additions & 2 deletions BotProject/CSharp/ComposerData/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion BotProject/CSharp/Controllers/BotAdminController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Microsoft.Bot.Builder.TestBot.Json
namespace Microsoft.Bot.Builder.ComposerBot.json
{
[Route("api/admin")]
[ApiController]
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/Controllers/BotController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Microsoft.Bot.Builder.Dialogs.Debugging;
using Microsoft.Bot.Builder.Integration.AspNet.Core;

namespace Microsoft.Bot.Builder.TestBot.Json
namespace Microsoft.Bot.Builder.ComposerBot.json
{
// This ASP Controller is created to handle a request. Dependency Injection will provide the Adapter and IBot
// implementation at runtime. Multiple different IBot implementations running at different endpoints can be
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/LuisConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Microsoft.Bot.Builder.TestBot.Json
namespace Microsoft.Bot.Builder.ComposerBot.json
{
public class LuisCustomConfig
{
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System;
using System.IO;

namespace Microsoft.Bot.Builder.TestBot.Json
namespace Microsoft.Bot.Builder.ComposerBot.json
{
public class Program
{
Expand Down
4 changes: 2 additions & 2 deletions BotProject/CSharp/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"BotProject": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:3979",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:3979"
}
}
}
}
40 changes: 0 additions & 40 deletions BotProject/CSharp/Recognizers/RuleRecognizer.cs

This file was deleted.

2 changes: 1 addition & 1 deletion BotProject/CSharp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using Microsoft.Bot.Builder.BotFramework;
using Microsoft.Bot.Builder.Dialogs.Declarative;

namespace Microsoft.Bot.Builder.TestBot.Json
namespace Microsoft.Bot.Builder.ComposerBot.json
{
public class Startup
{
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/Tests/ActionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources;
using Microsoft.Bot.Builder.Dialogs.Declarative.Types;
using Microsoft.Bot.Builder.TestBot.Json;
using Microsoft.Bot.Builder.ComposerBot.json;
using Microsoft.Bot.Schema;
using Microsoft.Extensions.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/Tests/ControllingConversationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources;
using Microsoft.Bot.Builder.Dialogs.Declarative.Types;
using Microsoft.Bot.Builder.TestBot.Json;
using Microsoft.Bot.Builder.ComposerBot.json;
using Microsoft.Bot.Schema;
using Microsoft.Extensions.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/Tests/InputsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources;
using Microsoft.Bot.Builder.Dialogs.Declarative.Types;
using Microsoft.Bot.Builder.TestBot.Json;
using Microsoft.Bot.Builder.ComposerBot.json;
using Microsoft.Bot.Schema;
using Microsoft.Extensions.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/Tests/MessageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources;
using Microsoft.Bot.Builder.Dialogs.Declarative.Types;
using Microsoft.Bot.Builder.TestBot.Json;
using Microsoft.Bot.Builder.ComposerBot.json;
using Microsoft.Bot.Schema;
using Microsoft.Extensions.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
2 changes: 1 addition & 1 deletion BotProject/CSharp/Tests/ToDoBotTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources;
using Microsoft.Bot.Builder.Dialogs.Declarative.Types;
using Microsoft.Bot.Builder.TestBot.Json;
using Microsoft.Bot.Builder.ComposerBot.json;
using Microsoft.Bot.Schema;
using Microsoft.Extensions.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
9 changes: 9 additions & 0 deletions BotProject/Templates/CSharp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/

!Properties/launchSettings.json
!packages/packages.json
33 changes: 33 additions & 0 deletions BotProject/Templates/CSharp/BotProject.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Tests\**" />
<Content Remove="Tests\**" />
<EmbeddedResource Remove="Tests\**" />
<None Remove="Tests\**" />
</ItemGroup>
<ItemGroup>
<None Include="ComposerDialogs\**">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.1" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.ApplicationInsights" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.Azure" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Adaptive" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Debugging" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Declarative" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.ApplicationInsights.Core" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Builder.LanguageGeneration.Renderer" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="Microsoft.Bot.Connector" Version="4.6.0-Daily-2019-08-31-01" />
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="ComposerDialogs\" />
</ItemGroup>
</Project>
31 changes: 31 additions & 0 deletions BotProject/Templates/CSharp/BotProject.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BotProject", "BotProject.csproj", "{80ACF5BE-4A04-46F8-A83E-530FB21948D5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{5AFADEA2-A18F-46DF-8080-2CA418880318}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{80ACF5BE-4A04-46F8-A83E-530FB21948D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80ACF5BE-4A04-46F8-A83E-530FB21948D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80ACF5BE-4A04-46F8-A83E-530FB21948D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{80ACF5BE-4A04-46F8-A83E-530FB21948D5}.Release|Any CPU.Build.0 = Release|Any CPU
{5AFADEA2-A18F-46DF-8080-2CA418880318}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5AFADEA2-A18F-46DF-8080-2CA418880318}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5AFADEA2-A18F-46DF-8080-2CA418880318}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5AFADEA2-A18F-46DF-8080-2CA418880318}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B13FC467-1A63-4C8F-A29E-43B2D8B79B17}
EndGlobalSection
EndGlobal
38 changes: 38 additions & 0 deletions BotProject/Templates/CSharp/BotSettings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.Bot.Builder.Azure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Microsoft.Bot.Builder.ComposerBot.json
{
public class BotSettings
{
public BotSettings()
{

}

public BlobStorageConfiguration BlobStorage { get; set; }

public string MicrosoftAppId { get; set; }

public string MicrosoftAppPassword { get; set; }

public CosmosDbStorageOptions CosmosDb { get; set; }

public TelemetryConfiguration AppInsights { get; set; }

public class BlobStorageConfiguration
{
public BlobStorageConfiguration()
{

}

public string ConnectionString { get; set; }
public string Container { get; set; }
}
}
}
63 changes: 63 additions & 0 deletions BotProject/Templates/CSharp/ComposerBot.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Builder.Dialogs.Adaptive;
using Microsoft.Bot.Builder.Dialogs.Debugging;
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources;
using Microsoft.Bot.Schema;
using Microsoft.Extensions.Configuration;
using Microsoft.Recognizers.Text;
using Newtonsoft.Json;


namespace Microsoft.Bot.Builder.ComposerBot.json
{
public class ComposerBot : ActivityHandler
{
private AdaptiveDialog rootDialog;
private readonly ResourceExplorer resourceExplorer;
private UserState userState;
private DialogManager dialogManager;
private ConversationState conversationState;
private IStatePropertyAccessor<DialogState> dialogState;
private Source.IRegistry registry;
private string rootDialogFile { get; set; }
private IBotTelemetryClient telemetryClient;

public ComposerBot(string rootDialogFile, ConversationState conversationState, UserState userState, ResourceExplorer resourceExplorer, Source.IRegistry registry, IBotTelemetryClient telemetryClient)
{
this.conversationState = conversationState;
this.userState = userState;
this.dialogState = conversationState.CreateProperty<DialogState>("DialogState");
this.registry = registry;
this.resourceExplorer = resourceExplorer;
this.rootDialogFile = rootDialogFile;
this.telemetryClient = telemetryClient;

LoadRootDialogAsync();
}

private void LoadRootDialogAsync()
{
var rootFile = resourceExplorer.GetResource(rootDialogFile);
rootDialog = DeclarativeTypeLoader.Load<AdaptiveDialog>(rootFile, resourceExplorer, registry);
this.dialogManager = new DialogManager(rootDialog);
}

public override async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken = default(CancellationToken))
{
this.telemetryClient.TrackTrace("Activity:" + turnContext.Activity.Text, Severity.Information, null);
await this.dialogManager.OnTurnAsync(turnContext, cancellationToken: cancellationToken);
await this.conversationState.SaveChangesAsync(turnContext, false, cancellationToken);
await this.userState.SaveChangesAsync(turnContext, false, cancellationToken);
}
}
}
Loading