├── obj └── Debug │ ├── AppInsightsBot.csproj.CopyComplete │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ ├── AppInsightsBot.csproj.CoreCompileInputs.cache │ ├── StateBot.dll │ ├── StateBot.pdb │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── AppInsightsBot.csprojResolveAssemblyReference.cache │ └── AppInsightsBot.csproj.FileListAbsolute.txt ├── packages ├── System.Diagnostics.DiagnosticSource.4.4.0 │ ├── lib │ │ ├── netcoreapp2.0 │ │ │ └── _._ │ │ ├── net45 │ │ │ └── System.Diagnostics.DiagnosticSource.dll │ │ ├── net46 │ │ │ └── System.Diagnostics.DiagnosticSource.dll │ │ ├── netstandard1.1 │ │ │ └── System.Diagnostics.DiagnosticSource.dll │ │ ├── netstandard1.3 │ │ │ └── System.Diagnostics.DiagnosticSource.dll │ │ └── portable-net45+win8+wpa81 │ │ │ └── System.Diagnostics.DiagnosticSource.dll │ ├── ref │ │ └── netcoreapp2.0 │ │ │ └── _._ │ ├── useSharedDesignerContext.txt │ ├── version.txt │ ├── System.Diagnostics.DiagnosticSource.4.4.0.nupkg │ └── LICENSE.TXT ├── Autofac.4.2.1 │ ├── Autofac.4.2.1.nupkg │ └── lib │ │ ├── net45 │ │ └── Autofac.dll │ │ └── netstandard1.1 │ │ └── Autofac.dll ├── Chronic.Signed.0.3.2 │ ├── lib │ │ └── net40 │ │ │ └── Chronic.dll │ └── Chronic.Signed.0.3.2.nupkg ├── Microsoft.Bot.Builder.3.8.0 │ ├── tools │ │ └── RView.exe │ ├── Microsoft.Bot.Builder.3.8.0.nupkg │ └── lib │ │ └── net46 │ │ ├── Microsoft.Bot.Builder.dll │ │ ├── Microsoft.Bot.Connector.dll │ │ ├── Microsoft.Bot.Builder.Autofac.dll │ │ ├── ar │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── cs │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── en │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── es │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── fa │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── fr │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── ja │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── ru │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── de-dE │ │ └── Microsoft.Bot.Builder.resources.dll │ │ ├── zh-hans │ │ └── Microsoft.Bot.Builder.resources.dll │ │ └── Microsoft.Bot.Builder.Autofac.XML ├── Newtonsoft.Json.9.0.1 │ ├── Newtonsoft.Json.9.0.1.nupkg │ ├── lib │ │ ├── net20 │ │ │ └── Newtonsoft.Json.dll │ │ ├── net35 │ │ │ └── Newtonsoft.Json.dll │ │ ├── net40 │ │ │ └── Newtonsoft.Json.dll │ │ ├── net45 │ │ │ └── Newtonsoft.Json.dll │ │ ├── netstandard1.0 │ │ │ └── Newtonsoft.Json.dll │ │ ├── portable-net45+wp80+win8+wpa81 │ │ │ └── Newtonsoft.Json.dll │ │ └── portable-net40+sl5+wp80+win8+wpa81 │ │ │ └── Newtonsoft.Json.dll │ └── tools │ │ └── install.ps1 ├── Microsoft.AspNet.WebApi.5.2.3 │ └── Microsoft.AspNet.WebApi.5.2.3.nupkg ├── Microsoft.AspNet.WebApi.Core.5.2.3 │ ├── lib │ │ └── net45 │ │ │ └── System.Web.Http.dll │ ├── Microsoft.AspNet.WebApi.Core.5.2.3.nupkg │ └── Content │ │ └── web.config.transform ├── Microsoft.ApplicationInsights.Web.2.4.1 │ ├── lib │ │ ├── net40 │ │ │ └── Microsoft.AI.Web.dll │ │ └── net45 │ │ │ └── Microsoft.AI.Web.dll │ ├── Microsoft.ApplicationInsights.Web.2.4.1.nupkg │ └── content │ │ ├── net40 │ │ ├── ApplicationInsights.config.transform │ │ ├── web.config.uninstall.xdt │ │ ├── ApplicationInsights.config.uninstall.xdt │ │ ├── web.config.install.xdt │ │ └── ApplicationInsights.config.install.xdt │ │ └── net45 │ │ ├── ApplicationInsights.config.transform │ │ ├── web.config.uninstall.xdt │ │ ├── ApplicationInsights.config.uninstall.xdt │ │ ├── web.config.install.xdt │ │ └── ApplicationInsights.config.install.xdt ├── Microsoft.AspNet.WebApi.WebHost.5.2.3 │ ├── lib │ │ └── net45 │ │ │ ├── System.Web.Http.WebHost.dll │ │ │ └── System.Web.Http.WebHost.xml │ └── Microsoft.AspNet.WebApi.WebHost.5.2.3.nupkg ├── Microsoft.Rest.ClientRuntime.2.3.4 │ ├── Microsoft.Rest.ClientRuntime.2.3.4.nupkg │ └── lib │ │ ├── net45 │ │ └── Microsoft.Rest.ClientRuntime.dll │ │ ├── netstandard1.1 │ │ └── Microsoft.Rest.ClientRuntime.dll │ │ └── netstandard1.5 │ │ └── Microsoft.Rest.ClientRuntime.dll ├── Microsoft.ApplicationInsights.2.4.0 │ ├── Microsoft.ApplicationInsights.2.4.0.nupkg │ └── lib │ │ ├── wp8 │ │ └── Microsoft.ApplicationInsights.dll │ │ ├── net40 │ │ └── Microsoft.ApplicationInsights.dll │ │ ├── net45 │ │ └── Microsoft.ApplicationInsights.dll │ │ ├── net46 │ │ └── Microsoft.ApplicationInsights.dll │ │ ├── uap10.0 │ │ └── Microsoft.ApplicationInsights.dll │ │ ├── netstandard1.3 │ │ └── Microsoft.ApplicationInsights.dll │ │ └── portable-win81+wpa81 │ │ └── Microsoft.ApplicationInsights.dll ├── Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125 │ ├── tools │ │ └── prefix.html │ └── Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125.nupkg ├── Microsoft.AspNet.WebApi.Client.5.2.3 │ ├── lib │ │ ├── net45 │ │ │ └── System.Net.Http.Formatting.dll │ │ └── portable-wp8+netcore45+net45+wp81+wpa81 │ │ │ └── System.Net.Http.Formatting.dll │ └── Microsoft.AspNet.WebApi.Client.5.2.3.nupkg ├── Microsoft.ApplicationInsights.WindowsServer.2.4.1 │ ├── lib │ │ ├── net40 │ │ │ └── Microsoft.AI.WindowsServer.dll │ │ └── net45 │ │ │ └── Microsoft.AI.WindowsServer.dll │ ├── Microsoft.ApplicationInsights.WindowsServer.2.4.1.nupkg │ ├── Tools │ │ └── install.ps1 │ └── content │ │ ├── ApplicationInsights.config.transform │ │ ├── ApplicationInsights.config.install.xdt │ │ └── ApplicationInsights.config.uninstall.xdt ├── Microsoft.ApplicationInsights.Agent.Intercept.2.4.0 │ ├── lib │ │ ├── net40 │ │ │ └── Microsoft.AI.Agent.Intercept.dll │ │ └── net45 │ │ │ └── Microsoft.AI.Agent.Intercept.dll │ └── Microsoft.ApplicationInsights.Agent.Intercept.2.4.0.nupkg ├── Microsoft.AspNet.TelemetryCorrelation.1.0.0 │ ├── Microsoft.AspNet.TelemetryCorrelation.1.0.0.nupkg │ ├── lib │ │ └── net45 │ │ │ ├── Microsoft.AspNet.TelemetryCorrelation.dll │ │ │ └── Microsoft.AspNet.TelemetryCorrelation.xml │ └── content │ │ └── net45 │ │ ├── web.config.uninstall.xdt │ │ └── web.config.install.xdt ├── System.IdentityModel.Tokens.Jwt.4.0.4.403061554 │ ├── lib │ │ └── net45 │ │ │ └── System.IdentityModel.Tokens.Jwt.dll │ └── System.IdentityModel.Tokens.Jwt.4.0.4.403061554.nupkg ├── Microsoft.ApplicationInsights.DependencyCollector.2.4.1 │ ├── content │ │ ├── ApplicationInsights.config.transform │ │ ├── ApplicationInsights.config.uninstall.xdt │ │ └── ApplicationInsights.config.install.xdt │ ├── lib │ │ ├── net40 │ │ │ └── Microsoft.AI.DependencyCollector.dll │ │ ├── net45 │ │ │ └── Microsoft.AI.DependencyCollector.dll │ │ └── netstandard1.6 │ │ │ └── Microsoft.AI.DependencyCollector.dll │ └── Microsoft.ApplicationInsights.DependencyCollector.2.4.1.nupkg ├── Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1 │ ├── content │ │ ├── ApplicationInsights.config.transform │ │ ├── ApplicationInsights.config.uninstall.xdt │ │ └── ApplicationInsights.config.install.xdt │ ├── lib │ │ ├── net40 │ │ │ └── Microsoft.AI.PerfCounterCollector.dll │ │ └── net45 │ │ │ └── Microsoft.AI.PerfCounterCollector.dll │ └── Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1.nupkg ├── Microsoft.WindowsAzure.ConfigurationManager.3.2.3 │ ├── lib │ │ └── net40 │ │ │ ├── Microsoft.WindowsAzure.Configuration.dll │ │ │ └── Microsoft.WindowsAzure.Configuration.xml │ └── Microsoft.WindowsAzure.ConfigurationManager.3.2.3.nupkg ├── Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0 │ ├── content │ │ ├── ApplicationInsights.config.transform │ │ ├── ApplicationInsights.config.uninstall.xdt │ │ └── ApplicationInsights.config.install.xdt │ ├── lib │ │ ├── net40 │ │ │ └── Microsoft.AI.ServerTelemetryChannel.dll │ │ └── net45 │ │ │ └── Microsoft.AI.ServerTelemetryChannel.dll │ └── Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0.nupkg └── Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554 │ ├── lib │ └── net45 │ │ └── Microsoft.IdentityModel.Protocol.Extensions.dll │ └── Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554.nupkg ├── bin ├── Autofac.dll ├── Chronic.dll ├── StateBot.dll ├── StateBot.pdb ├── Microsoft.AI.Web.dll ├── Newtonsoft.Json.dll ├── System.Web.Http.dll ├── Microsoft.Bot.Builder.dll ├── Microsoft.Bot.Connector.dll ├── System.Web.Http.WebHost.dll ├── Microsoft.AI.WindowsServer.dll ├── System.Net.Http.Formatting.dll ├── Microsoft.AI.Agent.Intercept.dll ├── Microsoft.Rest.ClientRuntime.dll ├── Microsoft.ApplicationInsights.dll ├── Microsoft.Bot.Builder.Autofac.dll ├── System.IdentityModel.Tokens.Jwt.dll ├── Microsoft.AI.DependencyCollector.dll ├── Microsoft.AI.PerfCounterCollector.dll ├── Microsoft.AI.ServerTelemetryChannel.dll ├── Microsoft.WindowsAzure.Configuration.dll ├── System.Diagnostics.DiagnosticSource.dll ├── ar │ └── Microsoft.Bot.Builder.resources.dll ├── cs │ └── Microsoft.Bot.Builder.resources.dll ├── en │ └── Microsoft.Bot.Builder.resources.dll ├── es │ └── Microsoft.Bot.Builder.resources.dll ├── fa │ └── Microsoft.Bot.Builder.resources.dll ├── fr │ └── Microsoft.Bot.Builder.resources.dll ├── ja │ └── Microsoft.Bot.Builder.resources.dll ├── ru │ └── Microsoft.Bot.Builder.resources.dll ├── Microsoft.AspNet.TelemetryCorrelation.dll ├── de-dE │ └── Microsoft.Bot.Builder.resources.dll ├── zh-hans │ └── Microsoft.Bot.Builder.resources.dll ├── Microsoft.IdentityModel.Protocol.Extensions.dll ├── StateBot.dll.config ├── Microsoft.AspNet.TelemetryCorrelation.xml ├── Microsoft.Bot.Builder.Autofac.xml ├── ApplicationInsights.config ├── Microsoft.WindowsAzure.Configuration.xml └── System.Web.Http.WebHost.xml ├── images ├── outcome-1.png ├── outcome-2.png ├── outcome-3.png └── botdirfield.png ├── Global.asax ├── debug.log ├── ContextConstants.cs ├── Global.asax.cs ├── default.htm ├── AppInsightsBot.sln ├── Web.Debug.config ├── App_Start └── WebApiConfig.cs ├── Web.Release.config ├── AppInsightsBot.csproj.user ├── Properties └── AssemblyInfo.cs ├── packages.config ├── Controllers └── MessagesController.cs ├── TelemetryExtensions.cs ├── README.md ├── azuredeploy.json ├── Web.config ├── StateDialog.cs └── ApplicationInsights.config /obj/Debug/AppInsightsBot.csproj.CopyComplete: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/netcoreapp2.0/_._: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/ref/netcoreapp2.0/_._: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/useSharedDesignerContext.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/Autofac.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Autofac.dll -------------------------------------------------------------------------------- /bin/Chronic.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Chronic.dll -------------------------------------------------------------------------------- /bin/StateBot.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/StateBot.dll -------------------------------------------------------------------------------- /bin/StateBot.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/StateBot.pdb -------------------------------------------------------------------------------- /images/outcome-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/images/outcome-1.png -------------------------------------------------------------------------------- /images/outcome-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/images/outcome-2.png -------------------------------------------------------------------------------- /images/outcome-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/images/outcome-3.png -------------------------------------------------------------------------------- /obj/Debug/AppInsightsBot.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | fd5b5ac3c2b1b031735cf561b29f204dad34b26f 2 | -------------------------------------------------------------------------------- /bin/Microsoft.AI.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.AI.Web.dll -------------------------------------------------------------------------------- /bin/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /bin/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/System.Web.Http.dll -------------------------------------------------------------------------------- /images/botdirfield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/images/botdirfield.png -------------------------------------------------------------------------------- /obj/Debug/StateBot.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/obj/Debug/StateBot.dll -------------------------------------------------------------------------------- /obj/Debug/StateBot.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/obj/Debug/StateBot.pdb -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/version.txt: -------------------------------------------------------------------------------- 1 | d6210f5a6924725f855bbeda567d6a9fcf9caf1c 2 | -------------------------------------------------------------------------------- /bin/Microsoft.Bot.Builder.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.Bot.Builder.dll -------------------------------------------------------------------------------- /Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="AppInsightsBot.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /bin/Microsoft.Bot.Connector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.Bot.Connector.dll -------------------------------------------------------------------------------- /bin/System.Web.Http.WebHost.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/System.Web.Http.WebHost.dll -------------------------------------------------------------------------------- /bin/Microsoft.AI.WindowsServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.AI.WindowsServer.dll -------------------------------------------------------------------------------- /bin/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /bin/Microsoft.AI.Agent.Intercept.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.AI.Agent.Intercept.dll -------------------------------------------------------------------------------- /bin/Microsoft.Rest.ClientRuntime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.Rest.ClientRuntime.dll -------------------------------------------------------------------------------- /bin/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /bin/Microsoft.Bot.Builder.Autofac.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.Bot.Builder.Autofac.dll -------------------------------------------------------------------------------- /bin/System.IdentityModel.Tokens.Jwt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/System.IdentityModel.Tokens.Jwt.dll -------------------------------------------------------------------------------- /bin/Microsoft.AI.DependencyCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.AI.DependencyCollector.dll -------------------------------------------------------------------------------- /bin/Microsoft.AI.PerfCounterCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.AI.PerfCounterCollector.dll -------------------------------------------------------------------------------- /debug.log: -------------------------------------------------------------------------------- 1 | [0529/230109.573:ERROR:http_transport_win.cc(273)] WinHttpSendRequest: The server name or address could not be resolved (0x2ee7) 2 | -------------------------------------------------------------------------------- /bin/Microsoft.AI.ServerTelemetryChannel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.AI.ServerTelemetryChannel.dll -------------------------------------------------------------------------------- /bin/Microsoft.WindowsAzure.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.WindowsAzure.Configuration.dll -------------------------------------------------------------------------------- /bin/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /bin/ar/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/ar/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/cs/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/cs/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/en/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/en/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/es/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/es/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/fa/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/fa/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/fr/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/fr/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/ja/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/ja/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/ru/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/ru/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Autofac.4.2.1/Autofac.4.2.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Autofac.4.2.1/Autofac.4.2.1.nupkg -------------------------------------------------------------------------------- /packages/Autofac.4.2.1/lib/net45/Autofac.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Autofac.4.2.1/lib/net45/Autofac.dll -------------------------------------------------------------------------------- /bin/Microsoft.AspNet.TelemetryCorrelation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.AspNet.TelemetryCorrelation.dll -------------------------------------------------------------------------------- /bin/de-dE/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/de-dE/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/zh-hans/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/zh-hans/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /bin/Microsoft.IdentityModel.Protocol.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/bin/Microsoft.IdentityModel.Protocol.Extensions.dll -------------------------------------------------------------------------------- /packages/Chronic.Signed.0.3.2/lib/net40/Chronic.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Chronic.Signed.0.3.2/lib/net40/Chronic.dll -------------------------------------------------------------------------------- /packages/Autofac.4.2.1/lib/netstandard1.1/Autofac.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Autofac.4.2.1/lib/netstandard1.1/Autofac.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/tools/RView.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/tools/RView.exe -------------------------------------------------------------------------------- /obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /packages/Chronic.Signed.0.3.2/Chronic.Signed.0.3.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Chronic.Signed.0.3.2/Chronic.Signed.0.3.2.nupkg -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/Newtonsoft.Json.9.0.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/Newtonsoft.Json.9.0.1.nupkg -------------------------------------------------------------------------------- /obj/Debug/AppInsightsBot.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/obj/Debug/AppInsightsBot.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/lib/net20/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/lib/net20/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/lib/net35/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/lib/net35/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/lib/net40/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/lib/net40/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/lib/net45/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/lib/net45/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/Microsoft.Bot.Builder.3.8.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/Microsoft.Bot.Builder.3.8.0.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.5.2.3/Microsoft.AspNet.WebApi.5.2.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.5.2.3/Microsoft.AspNet.WebApi.5.2.3.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Core.5.2.3/lib/net45/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.Core.5.2.3/lib/net45/System.Web.Http.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/Microsoft.Bot.Builder.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/Microsoft.Bot.Builder.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/Microsoft.Bot.Connector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/Microsoft.Bot.Connector.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/lib/net40/Microsoft.AI.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.Web.2.4.1/lib/net40/Microsoft.AI.Web.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/lib/net45/Microsoft.AI.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.Web.2.4.1/lib/net45/Microsoft.AI.Web.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/Microsoft.Bot.Builder.Autofac.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/Microsoft.Bot.Builder.Autofac.dll -------------------------------------------------------------------------------- /ContextConstants.cs: -------------------------------------------------------------------------------- 1 | namespace AppInsightsBot 2 | { 3 | public class ContextConstants 4 | { 5 | public const string UserNameKey = "UserName"; 6 | 7 | public const string CityKey = "City"; 8 | } 9 | } -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Core.5.2.3/Microsoft.AspNet.WebApi.Core.5.2.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.Core.5.2.3/Microsoft.AspNet.WebApi.Core.5.2.3.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.WebHost.5.2.3/lib/net45/System.Web.Http.WebHost.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.WebHost.5.2.3/lib/net45/System.Web.Http.WebHost.dll -------------------------------------------------------------------------------- /packages/Microsoft.Rest.ClientRuntime.2.3.4/Microsoft.Rest.ClientRuntime.2.3.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Rest.ClientRuntime.2.3.4/Microsoft.Rest.ClientRuntime.2.3.4.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/Microsoft.ApplicationInsights.2.4.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/Microsoft.ApplicationInsights.2.4.0.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/lib/wp8/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/lib/wp8/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125/tools/prefix.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125/tools/prefix.html -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Client.5.2.3/lib/net45/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.Client.5.2.3/lib/net45/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/ar/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/ar/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/cs/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/cs/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/en/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/en/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/es/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/es/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/fa/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/fa/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/fr/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/fr/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/ja/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/ja/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/ru/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/ru/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.Rest.ClientRuntime.2.3.4/lib/net45/Microsoft.Rest.ClientRuntime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Rest.ClientRuntime.2.3.4/lib/net45/Microsoft.Rest.ClientRuntime.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/lib/net40/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/lib/net40/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/lib/net45/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/lib/net45/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/lib/net46/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/lib/net46/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Client.5.2.3/Microsoft.AspNet.WebApi.Client.5.2.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.Client.5.2.3/Microsoft.AspNet.WebApi.Client.5.2.3.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/de-dE/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/de-dE/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Newtonsoft.Json.9.0.1/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/lib/uap10.0/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/lib/uap10.0/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.WebHost.5.2.3/Microsoft.AspNet.WebApi.WebHost.5.2.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.WebHost.5.2.3/Microsoft.AspNet.WebApi.WebHost.5.2.3.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/zh-hans/Microsoft.Bot.Builder.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Bot.Builder.3.8.0/lib/net46/zh-hans/Microsoft.Bot.Builder.resources.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/Microsoft.ApplicationInsights.Web.2.4.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.Web.2.4.1/Microsoft.ApplicationInsights.Web.2.4.1.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.Rest.ClientRuntime.2.3.4/lib/netstandard1.1/Microsoft.Rest.ClientRuntime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Rest.ClientRuntime.2.3.4/lib/netstandard1.1/Microsoft.Rest.ClientRuntime.dll -------------------------------------------------------------------------------- /packages/Microsoft.Rest.ClientRuntime.2.3.4/lib/netstandard1.5/Microsoft.Rest.ClientRuntime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.Rest.ClientRuntime.2.3.4/lib/netstandard1.5/Microsoft.Rest.ClientRuntime.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/lib/netstandard1.3/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/lib/netstandard1.3/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/lib/net40/Microsoft.AI.WindowsServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/lib/net40/Microsoft.AI.WindowsServer.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/lib/net45/Microsoft.AI.WindowsServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/lib/net45/Microsoft.AI.WindowsServer.dll -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/System.Diagnostics.DiagnosticSource.4.4.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.Diagnostics.DiagnosticSource.4.4.0/System.Diagnostics.DiagnosticSource.4.4.0.nupkg -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/net45/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/net45/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/net46/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/net46/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.2.4.0/lib/portable-win81+wpa81/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.2.4.0/lib/portable-win81+wpa81/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0/lib/net40/Microsoft.AI.Agent.Intercept.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0/lib/net40/Microsoft.AI.Agent.Intercept.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0/lib/net45/Microsoft.AI.Agent.Intercept.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0/lib/net45/Microsoft.AI.Agent.Intercept.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net40/ApplicationInsights.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net45/ApplicationInsights.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.TelemetryCorrelation.1.0.0/Microsoft.AspNet.TelemetryCorrelation.1.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.TelemetryCorrelation.1.0.0/Microsoft.AspNet.TelemetryCorrelation.1.0.0.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.TelemetryCorrelation.1.0.0/lib/net45/Microsoft.AspNet.TelemetryCorrelation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.TelemetryCorrelation.1.0.0/lib/net45/Microsoft.AspNet.TelemetryCorrelation.dll -------------------------------------------------------------------------------- /packages/System.IdentityModel.Tokens.Jwt.4.0.4.403061554/lib/net45/System.IdentityModel.Tokens.Jwt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.IdentityModel.Tokens.Jwt.4.0.4.403061554/lib/net45/System.IdentityModel.Tokens.Jwt.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/content/ApplicationInsights.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/content/ApplicationInsights.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/Microsoft.WindowsAzure.ConfigurationManager.3.2.3/lib/net40/Microsoft.WindowsAzure.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.WindowsAzure.ConfigurationManager.3.2.3/lib/net40/Microsoft.WindowsAzure.Configuration.dll -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/netstandard1.1/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/netstandard1.1/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/lib/net40/Microsoft.AI.DependencyCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/lib/net40/Microsoft.AI.DependencyCollector.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/lib/net45/Microsoft.AI.DependencyCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/lib/net45/Microsoft.AI.DependencyCollector.dll -------------------------------------------------------------------------------- /packages/System.IdentityModel.Tokens.Jwt.4.0.4.403061554/System.IdentityModel.Tokens.Jwt.4.0.4.403061554.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.IdentityModel.Tokens.Jwt.4.0.4.403061554/System.IdentityModel.Tokens.Jwt.4.0.4.403061554.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/lib/net40/Microsoft.AI.PerfCounterCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/lib/net40/Microsoft.AI.PerfCounterCollector.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/lib/net45/Microsoft.AI.PerfCounterCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/lib/net45/Microsoft.AI.PerfCounterCollector.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/Microsoft.ApplicationInsights.WindowsServer.2.4.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/Microsoft.ApplicationInsights.WindowsServer.2.4.1.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/content/ApplicationInsights.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/Microsoft.WindowsAzure.ConfigurationManager.3.2.3/Microsoft.WindowsAzure.ConfigurationManager.3.2.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.WindowsAzure.ConfigurationManager.3.2.3/Microsoft.WindowsAzure.ConfigurationManager.3.2.3.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0/Microsoft.ApplicationInsights.Agent.Intercept.2.4.0.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/lib/netstandard1.6/Microsoft.AI.DependencyCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/lib/netstandard1.6/Microsoft.AI.DependencyCollector.dll -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Client.5.2.3/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.AspNet.WebApi.Client.5.2.3/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/portable-net45+win8+wpa81/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/System.Diagnostics.DiagnosticSource.4.4.0/lib/portable-net45+win8+wpa81/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/Microsoft.ApplicationInsights.DependencyCollector.2.4.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/Microsoft.ApplicationInsights.DependencyCollector.2.4.1.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/lib/net40/Microsoft.AI.ServerTelemetryChannel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/lib/net40/Microsoft.AI.ServerTelemetryChannel.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/lib/net45/Microsoft.AI.ServerTelemetryChannel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/lib/net45/Microsoft.AI.ServerTelemetryChannel.dll -------------------------------------------------------------------------------- /packages/Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554/lib/net45/Microsoft.IdentityModel.Protocol.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554/lib/net45/Microsoft.IdentityModel.Protocol.Extensions.dll -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125/Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125/Microsoft.ApplicationInsights.JavaScript.0.22.19-build00125.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554/Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554/Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/App-Insight-Bot/master/packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0.nupkg -------------------------------------------------------------------------------- /Global.asax.cs: -------------------------------------------------------------------------------- 1 | namespace AppInsightsBot 2 | { 3 | using System.Web.Http; 4 | 5 | public class WebApiApplication : System.Web.HttpApplication 6 | { 7 | public static Microsoft.ApplicationInsights.TelemetryClient Telemetry { get; } = new Microsoft.ApplicationInsights.TelemetryClient(); 8 | 9 | protected void Application_Start() 10 | { 11 | GlobalConfiguration.Configure(WebApiConfig.Register); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /default.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

AppInsightsBot

9 |

A stateless sample bot tracking context of a conversation.

10 |

Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to

https://your_bots_hostname/api/messages

11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/Tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | if ([System.IO.File]::Exists($project.FullName)) 4 | { 5 | function MarkItemASCopyToOutput($item) 6 | { 7 | Try 8 | { 9 | #mark it to copy if newer 10 | $item.Properties.Item("CopyToOutputDirectory").Value = 2 11 | } 12 | Catch 13 | { 14 | write-host $_.Exception.ToString() 15 | } 16 | } 17 | 18 | MarkItemASCopyToOutput($project.ProjectItems.Item("ApplicationInsights.config")) 19 | } -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/content/ApplicationInsights.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.Core.5.2.3/Content/web.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.TelemetryCorrelation.1.0.0/content/net45/web.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/content/ApplicationInsights.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/content/ApplicationInsights.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/content/ApplicationInsights.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net40/web.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net45/web.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /packages/System.Diagnostics.DiagnosticSource.4.4.0/LICENSE.TXT: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) .NET Foundation and Contributors 4 | 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /AppInsightsBot.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppInsightsBot", "AppInsightsBot.csproj", "{A8BA1066-5695-4D71-ABB4-65E5A5E0C3D4}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "README", "README", "{95ECA428-AA26-4C78-B6A1-DB63EA66E54C}" 9 | ProjectSection(SolutionItems) = preProject 10 | README.md = README.md 11 | EndProjectSection 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Any CPU = Debug|Any CPU 16 | Release|Any CPU = Release|Any CPU 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {A8BA1066-5695-4D71-ABB4-65E5A5E0C3D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 20 | {A8BA1066-5695-4D71-ABB4-65E5A5E0C3D4}.Debug|Any CPU.Build.0 = Debug|Any CPU 21 | {A8BA1066-5695-4D71-ABB4-65E5A5E0C3D4}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {A8BA1066-5695-4D71-ABB4-65E5A5E0C3D4}.Release|Any CPU.Build.0 = Release|Any CPU 23 | EndGlobalSection 24 | GlobalSection(SolutionProperties) = preSolution 25 | HideSolutionNode = FALSE 26 | EndGlobalSection 27 | EndGlobal 28 | -------------------------------------------------------------------------------- /Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | namespace AppInsightsBot 2 | { 3 | using System.Web.Http; 4 | using Newtonsoft.Json; 5 | using Newtonsoft.Json.Serialization; 6 | 7 | public static class WebApiConfig 8 | { 9 | public static void Register(HttpConfiguration config) 10 | { 11 | // Json settings 12 | config.Formatters.JsonFormatter.SerializerSettings.NullValueHandling = NullValueHandling.Ignore; 13 | config.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); 14 | config.Formatters.JsonFormatter.SerializerSettings.Formatting = Formatting.Indented; 15 | JsonConvert.DefaultSettings = () => new JsonSerializerSettings() 16 | { 17 | ContractResolver = new CamelCasePropertyNamesContractResolver(), 18 | Formatting = Newtonsoft.Json.Formatting.Indented, 19 | NullValueHandling = NullValueHandling.Ignore, 20 | }; 21 | 22 | // Web API configuration and services 23 | 24 | // Web API routes 25 | config.MapHttpAttributeRoutes(); 26 | 27 | config.Routes.MapHttpRoute( 28 | name: "DefaultApi", 29 | routeTemplate: "api/{controller}/{id}", 30 | defaults: new { id = RouteParameter.Optional }); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /AppInsightsBot.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | CurrentPage 19 | True 20 | False 21 | False 22 | False 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | True 32 | True 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("AppInsightsBot")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("AppInsightsBot")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("a8ba1066-5695-4d71-abb4-65e5a5e0c3d4")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.DependencyCollector.2.4.1/content/ApplicationInsights.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | core.windows.net 15 | core.chinacloudapi.cn 16 | core.cloudapi.de 17 | core.usgovcloudapi.net 18 | localhost 19 | 127.0.0.1 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.TelemetryCorrelation.1.0.0/content/net45/web.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 16 | 17 | 18 | 19 | 21 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/content/ApplicationInsights.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.2.4.1/content/ApplicationInsights.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net40/ApplicationInsights.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0/content/ApplicationInsights.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | 21 | 5 22 | Event 23 | 24 | 25 | 26 | 29 | 5 30 | Event 31 | 32 | 33 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net45/ApplicationInsights.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Controllers/MessagesController.cs: -------------------------------------------------------------------------------- 1 | namespace AppInsightsBot 2 | { 3 | using System.Collections.Generic; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Threading.Tasks; 7 | using System.Web.Http; 8 | using Microsoft.Bot.Builder.Dialogs; 9 | using Microsoft.Bot.Connector; 10 | 11 | [BotAuthentication] 12 | public class MessagesController : ApiController 13 | { 14 | /// 15 | /// POST: api/Messages 16 | /// Receive a message from a user and reply to it 17 | /// 18 | public async Task Post([FromBody]Activity activity) 19 | { 20 | if (activity.Type == ActivityTypes.Message) 21 | { 22 | await Conversation.SendAsync(activity, () => new StateDialog()); 23 | } 24 | else 25 | { 26 | this.HandleSystemMessage(activity); 27 | } 28 | 29 | var response = Request.CreateResponse(HttpStatusCode.OK); 30 | return response; 31 | } 32 | 33 | private Activity HandleSystemMessage(Activity message) 34 | { 35 | WebApiApplication.Telemetry.TrackEvent(@"SystemMessage", new Dictionary { { @"Type", message.Type } }); 36 | 37 | if (message.Type == ActivityTypes.DeleteUserData) 38 | { 39 | // Implement user deletion here 40 | // If we handle user deletion, return a real message 41 | } 42 | else if (message.Type == ActivityTypes.ConversationUpdate) 43 | { 44 | // Handle conversation state changes, like members being added and removed 45 | // Use Activity.MembersAdded and Activity.MembersRemoved and Activity.Action for info 46 | // Not available in all channels 47 | } 48 | else if (message.Type == ActivityTypes.ContactRelationUpdate) 49 | { 50 | // Handle add/remove from contact lists 51 | // Activity.From + Activity.Action represent what happened 52 | } 53 | else if (message.Type == ActivityTypes.Typing) 54 | { 55 | // Handle knowing tha the user is typing 56 | } 57 | else if (message.Type == ActivityTypes.Ping) 58 | { 59 | } 60 | 61 | return null; 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net40/web.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net45/web.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /TelemetryExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace AppInsightsBot 2 | { 3 | using System.Collections.Generic; 4 | using Microsoft.ApplicationInsights.DataContracts; 5 | using Microsoft.Bot.Builder.Dialogs; 6 | using Newtonsoft.Json; 7 | 8 | public static class TelemetryExtensions 9 | { 10 | public static TraceTelemetry CreateTraceTelemetry(this IDialogContext ctx, string message = null, IDictionary properties = null) 11 | { 12 | var t = new TraceTelemetry(message); 13 | t.Properties.Add("ConversationData", JsonConvert.SerializeObject(ctx.ConversationData)); 14 | t.Properties.Add("PrivateConversationData", JsonConvert.SerializeObject(ctx.PrivateConversationData)); 15 | t.Properties.Add("UserData", JsonConvert.SerializeObject(ctx.UserData)); 16 | 17 | var m = ctx.MakeMessage(); 18 | t.Properties.Add("ConversationId", m.Conversation.Id); 19 | t.Properties.Add("UserId", m.Recipient.Id); 20 | 21 | if (properties != null) 22 | { 23 | foreach (var p in properties) 24 | { 25 | t.Properties.Add(p); 26 | } 27 | } 28 | 29 | return t; 30 | } 31 | 32 | public static EventTelemetry CreateEventTelemetry(this IDialogContext ctx, string message = null, IDictionary properties = null) 33 | { 34 | var t = new EventTelemetry(message); 35 | t.Properties.Add("ConversationData", JsonConvert.SerializeObject(ctx.ConversationData)); 36 | t.Properties.Add("PrivateConversationData", JsonConvert.SerializeObject(ctx.PrivateConversationData)); 37 | t.Properties.Add("UserData", JsonConvert.SerializeObject(ctx.UserData)); 38 | 39 | var m = ctx.MakeMessage(); 40 | t.Properties.Add("ConversationId", m.Conversation.Id); 41 | t.Properties.Add("UserId", m.Recipient.Id); 42 | 43 | if (properties != null) 44 | { 45 | foreach (var p in properties) 46 | { 47 | t.Properties.Add(p); 48 | } 49 | } 50 | 51 | return t; 52 | } 53 | 54 | public static ExceptionTelemetry CreateExceptionTelemetry(this IDialogContext ctx, System.Exception ex, IDictionary properties = null) 55 | { 56 | var t = new ExceptionTelemetry(ex); 57 | t.Properties.Add("ConversationData", JsonConvert.SerializeObject(ctx.ConversationData)); 58 | t.Properties.Add("PrivateConversationData", JsonConvert.SerializeObject(ctx.PrivateConversationData)); 59 | t.Properties.Add("UserData", JsonConvert.SerializeObject(ctx.UserData)); 60 | 61 | var m = ctx.MakeMessage(); 62 | t.Properties.Add("ConversationId", m.Conversation.Id); 63 | t.Properties.Add("UserId", m.Recipient.Id); 64 | 65 | if (properties != null) 66 | { 67 | foreach (var p in properties) 68 | { 69 | t.Properties.Add(p); 70 | } 71 | } 72 | 73 | return t; 74 | } 75 | } 76 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Application Insights integration Bot Sample 2 | A sample bot which logs telemetry to an Application Insights instance. 3 | 4 | [![Deploy to Azure][Deploy Button]][Deploy CSharp/AppInsights] 5 | 6 | [Deploy Button]: https://azuredeploy.net/deploybutton.png 7 | [Deploy CSharp/AppInsights]: https://azuredeploy.net 8 | 9 | ### Prerequisites 10 | 11 | The minimum prerequisites to run this sample are: 12 | * The latest update of Visual Studio 2015. You can download the community version [here](http://www.visualstudio.com) for free. 13 | * The Bot Framework Emulator. To install the Bot Framework Emulator, download it from [here](https://emulator.botframework.com/). Please refer to [this documentation article](https://github.com/microsoft/botframework-emulator/wiki/Getting-Started) to know more about the Bot Framework Emulator. 14 | * An Application Insights instance in Azure. The Instrumentation Key for which must be put in [ApplicationInsights.config](ApplicationInsights.config#L87) 15 | 16 | ### Code Highlights 17 | 18 | This bot is based off the StateDialog bot, but adds in the ability to log custom telemetry events to an Application Insights instance in Azure. 19 | 20 | The notable changes to the StateDialog bot which enable telemetry logging are threefold: 21 | 22 | 1. Addition of a `TelemetryClient` object in the Application Global namespace: 23 | 24 | ````C# 25 | public class WebApiApplication : System.Web.HttpApplication 26 | { 27 | public static Microsoft.ApplicationInsights.TelemetryClient Telemetry { get; } = new Microsoft.ApplicationInsights.TelemetryClient(); 28 | ... 29 | ```` 30 | 2. [Extension methods](TelemetryExtensions.cs) to enable creation of Telemetry objects that will be pre-populated with conversation and user data to enable quick filter/pivoting in the Application Insights dashboard. 31 | 3. Usage of these methods throughout the bot's code (eg: here, here, and here) 32 | 33 | ### Outcome 34 | 35 | After configuring, running the bot (locally or in a deployed instance), and having a conversation with it [see the State bot sample for details on the conversation flow](../core-State) you will begin to see events hitting the Application Insights instance you configured within seconds. You can easily filter these events by turning **off** showing Dependency Events so that you're only looking at Custom telemetry (Events, Exceptions, Trace) 36 | 37 | When you run the sample in Visual Studio, you'll see a button appear in your toolbar. Next to it will be the count of Telemetry Items that have been sent to your Application Insights instance by the current execution of the bot. From this button you can quickly & easily get to the Application Insights instance, as well. 38 | 39 | ![Sample Outcome](images/outcome-1.png) 40 | 41 | Clicking the button directly will open up a new pane in Visual Studio from which you can view, filter, and search your telemetry items. For viewing your custom-logged items we recommend unchecking `Dependency` and `Request` telemetry. However, note that these are useful in watching what, when, and how the bot framework's endpoints are used by your bot web application. 42 | 43 | ![Sample Outcome](images/outcome-2.png) 44 | 45 | Clicking on any item in the table will open up another pane allowing you to view and filter the various properties of that telemetry event. 46 | 47 | ![Sample Outcome](images/outcome-3.png) 48 | 49 | For more information logged directly from the Bot Connector, be sure to put your instrumentation key in to your bot's listing in the Bot Directory. 50 | 51 | ![Bot Directory Instrumentation Key field](images/botdirfield.png) -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.PerfCounterCollector.2.4.1/content/ApplicationInsights.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 22 | 23 | 24 | 25 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /azuredeploy.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", 3 | "contentVersion": "1.0.0.0", 4 | "parameters": { 5 | "siteName": { 6 | "defaultValue": "BotBuilder-Samples", 7 | "type": "string" 8 | }, 9 | "hostingPlanName": { 10 | "type": "string" 11 | }, 12 | "siteLocation": { 13 | "type": "string" 14 | }, 15 | "sku": { 16 | "type": "string", 17 | "allowedValues": [ 18 | "Free", 19 | "Shared", 20 | "Basic", 21 | "Standard" 22 | ], 23 | "defaultValue": "Free" 24 | }, 25 | "workerSize": { 26 | "type": "string", 27 | "allowedValues": [ 28 | "0", 29 | "1", 30 | "2" 31 | ], 32 | "defaultValue": "0" 33 | }, 34 | "repoUrl": { 35 | "type": "string" 36 | }, 37 | "branch": { 38 | "type": "string" 39 | }, 40 | "Project": { 41 | "type": "string", 42 | "defaultValue": "CSharp/core-AppInsights" 43 | }, 44 | "MicrosoftAppId": { 45 | "type": "string" 46 | }, 47 | "MicrosoftAppPassword": { 48 | "type": "string" 49 | } 50 | }, 51 | "resources": [ 52 | { 53 | "apiVersion": "2014-06-01", 54 | "name": "[parameters('hostingPlanName')]", 55 | "type": "Microsoft.Web/serverFarms", 56 | "location": "[parameters('siteLocation')]", 57 | "properties": { 58 | "name": "[parameters('hostingPlanName')]", 59 | "sku": "[parameters('sku')]", 60 | "workerSize": "[parameters('workerSize')]", 61 | "numberOfWorkers": 1 62 | } 63 | }, 64 | { 65 | "apiVersion": "2014-06-01", 66 | "name": "[parameters('siteName')]", 67 | "type": "Microsoft.Web/Sites", 68 | "location": "[parameters('siteLocation')]", 69 | "dependsOn": [ 70 | "[concat('Microsoft.Web/serverFarms/', parameters('hostingPlanName'))]" 71 | ], 72 | "tags": { 73 | "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty" 74 | }, 75 | "properties": { 76 | "name": "[parameters('siteName')]", 77 | "serverFarm": "[parameters('hostingPlanName')]" 78 | }, 79 | "resources": [ 80 | { 81 | "apiVersion": "2014-04-01", 82 | "type": "config", 83 | "name": "web", 84 | "dependsOn": [ 85 | "[concat('Microsoft.Web/Sites/', parameters('siteName'))]" 86 | ], 87 | "properties": { 88 | "appSettings": [ 89 | { 90 | "name": "Project", 91 | "value": "[parameters('Project')]" 92 | }, 93 | { 94 | "name": "MicrosoftAppId", 95 | "value": "[parameters('MicrosoftAppId')]" 96 | }, 97 | { 98 | "name": "MicrosoftAppPassword", 99 | "value": "[parameters('MicrosoftAppPassword')]" 100 | } 101 | ] 102 | } 103 | }, 104 | { 105 | "apiVersion": "2014-04-01", 106 | "name": "web", 107 | "type": "sourcecontrols", 108 | "dependsOn": [ 109 | "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]", 110 | "[concat('Microsoft.Web/Sites/', parameters('siteName'), '/config/web')]" 111 | ], 112 | "properties": { 113 | "RepoUrl": "[parameters('repoUrl')]", 114 | "branch": "[parameters('branch')]", 115 | "IsManualIntegration": true 116 | } 117 | } 118 | ] 119 | } 120 | ] 121 | } -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net40/ApplicationInsights.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | search|spider|crawl|Bot|Monitor|AlwaysOn 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | System.Web.Handlers.TransferRequestHandler 28 | Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler 29 | System.Web.StaticFileHandler 30 | System.Web.Handlers.AssemblyResourceLoader 31 | System.Web.Optimization.BundleHandler 32 | System.Web.Script.Services.ScriptHandlerFactory 33 | System.Web.Handlers.TraceHandler 34 | System.Web.Services.Discovery.DiscoveryRequestHandler 35 | System.Web.HttpDebugHandler 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /packages/Microsoft.ApplicationInsights.Web.2.4.1/content/net45/ApplicationInsights.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | search|spider|crawl|Bot|Monitor|AlwaysOn 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | System.Web.Handlers.TransferRequestHandler 28 | Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler 29 | System.Web.StaticFileHandler 30 | System.Web.Handlers.AssemblyResourceLoader 31 | System.Web.Optimization.BundleHandler 32 | System.Web.Script.Services.ScriptHandlerFactory 33 | System.Web.Handlers.TraceHandler 34 | System.Web.Services.Discovery.DiscoveryRequestHandler 35 | System.Web.HttpDebugHandler 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /packages/Newtonsoft.Json.9.0.1/tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | # open json.net splash page on package install 4 | # don't open if json.net is installed as a dependency 5 | 6 | try 7 | { 8 | $url = "http://www.newtonsoft.com/json/install?version=" + $package.Version 9 | $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) 10 | 11 | if ($dte2.ActiveWindow.Caption -eq "Package Manager Console") 12 | { 13 | # user is installing from VS NuGet console 14 | # get reference to the window, the console host and the input history 15 | # show webpage if "install-package newtonsoft.json" was last input 16 | 17 | $consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow]) 18 | 19 | $props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor ` 20 | [System.Reflection.BindingFlags]::NonPublic) 21 | 22 | $prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1 23 | if ($prop -eq $null) { return } 24 | 25 | $hostInfo = $prop.GetValue($consoleWindow) 26 | if ($hostInfo -eq $null) { return } 27 | 28 | $history = $hostInfo.WpfConsole.InputHistory.History 29 | 30 | $lastCommand = $history | select -last 1 31 | 32 | if ($lastCommand) 33 | { 34 | $lastCommand = $lastCommand.Trim().ToLower() 35 | if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("newtonsoft.json")) 36 | { 37 | $dte2.ItemOperations.Navigate($url) | Out-Null 38 | } 39 | } 40 | } 41 | else 42 | { 43 | # user is installing from VS NuGet dialog 44 | # get reference to the window, then smart output console provider 45 | # show webpage if messages in buffered console contains "installing...newtonsoft.json" in last operation 46 | 47 | $instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor ` 48 | [System.Reflection.BindingFlags]::NonPublic) 49 | 50 | $consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor ` 51 | [System.Reflection.BindingFlags]::NonPublic) 52 | 53 | if ($instanceField -eq $null -or $consoleField -eq $null) { return } 54 | 55 | $instance = $instanceField.GetValue($null) 56 | 57 | if ($instance -eq $null) { return } 58 | 59 | $consoleProvider = $consoleField.GetValue($instance) 60 | if ($consoleProvider -eq $null) { return } 61 | 62 | $console = $consoleProvider.CreateOutputConsole($false) 63 | 64 | $messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor ` 65 | [System.Reflection.BindingFlags]::NonPublic) 66 | if ($messagesField -eq $null) { return } 67 | 68 | $messages = $messagesField.GetValue($console) 69 | if ($messages -eq $null) { return } 70 | 71 | $operations = $messages -split "==============================" 72 | 73 | $lastOperation = $operations | select -last 1 74 | 75 | if ($lastOperation) 76 | { 77 | $lastOperation = $lastOperation.ToLower() 78 | 79 | $lines = $lastOperation -split "`r`n" 80 | 81 | $installMatch = $lines | ? { $_.StartsWith("------- installing...newtonsoft.json ") } | select -first 1 82 | 83 | if ($installMatch) 84 | { 85 | $dte2.ItemOperations.Navigate($url) | Out-Null 86 | } 87 | } 88 | } 89 | } 90 | catch 91 | { 92 | try 93 | { 94 | $pmPane = $dte2.ToolWindows.OutputWindow.OutputWindowPanes.Item("Package Manager") 95 | 96 | $selection = $pmPane.TextDocument.Selection 97 | $selection.StartOfDocument($false) 98 | $selection.EndOfDocument($true) 99 | 100 | if ($selection.Text.StartsWith("Attempting to gather dependencies information for package 'Newtonsoft.Json." + $package.Version + "'")) 101 | { 102 | # don't show on upgrade 103 | if (!$selection.Text.Contains("Removed package")) 104 | { 105 | $dte2.ItemOperations.Navigate($url) | Out-Null 106 | } 107 | } 108 | } 109 | catch 110 | { 111 | # stop potential errors from bubbling up 112 | # worst case the splash page won't open 113 | } 114 | } 115 | 116 | # still yolo -------------------------------------------------------------------------------- /Web.config: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /bin/StateBot.dll.config: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /bin/Microsoft.AspNet.TelemetryCorrelation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.TelemetryCorrelation 5 | 6 | 7 | 8 | 9 | Extensions of Activity class 10 | 11 | 12 | 13 | 14 | Http header name to carry the Request ID. 15 | 16 | 17 | 18 | 19 | Http header name to carry the correlation context. 20 | 21 | 22 | 23 | 24 | Reads Request-Id and Correlation-Context headers and sets ParentId and Baggage on Activity. 25 | 26 | Instance of activity that has not been started yet. 27 | Request headers collection. 28 | true if request was parsed successfully, false - otherwise. 29 | 30 | 31 | 32 | Reads Request-Id and Correlation-Context headers and sets ParentId and Baggage on Activity. 33 | 34 | Instance of activity that has not been started yet. 35 | Request headers collection. 36 | true if request was parsed successfully, false - otherwise. 37 | 38 | 39 | 40 | Activity helper class 41 | 42 | 43 | 44 | 45 | Listener name. 46 | 47 | 48 | 49 | 50 | Activity name for http request. 51 | 52 | 53 | 54 | 55 | Event name for the activity start event. 56 | 57 | 58 | 59 | 60 | Event name for the activity stop event. 61 | 62 | 63 | 64 | 65 | Key to store the activity in HttpContext. 66 | 67 | 68 | 69 | 70 | It's possible that a request is executed in both native threads and managed threads, 71 | in such case Activity.Current will be lost during native thread and managed thread switch. 72 | This method is intended to restore the current activity in order to correlate the child 73 | activities with the root activity of the request. 74 | 75 | Root activity id for the current request. 76 | If it returns an activity, it will be silently stopped with the parent activity 77 | 78 | 79 | 80 | This should be called after the Activity starts and only for root activity of a request. 81 | 82 | Context to save context to. 83 | Activity to save. 84 | 85 | 86 | 87 | Http Module sets ambient state using Activity API from DiagnosticsSource package. 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | ETW EventSource tracing class. 99 | 100 | 101 | 102 | 103 | Instance of the PlatformEventSource class. 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.TelemetryCorrelation.1.0.0/lib/net45/Microsoft.AspNet.TelemetryCorrelation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.AspNet.TelemetryCorrelation 5 | 6 | 7 | 8 | 9 | Extensions of Activity class 10 | 11 | 12 | 13 | 14 | Http header name to carry the Request ID. 15 | 16 | 17 | 18 | 19 | Http header name to carry the correlation context. 20 | 21 | 22 | 23 | 24 | Reads Request-Id and Correlation-Context headers and sets ParentId and Baggage on Activity. 25 | 26 | Instance of activity that has not been started yet. 27 | Request headers collection. 28 | true if request was parsed successfully, false - otherwise. 29 | 30 | 31 | 32 | Reads Request-Id and Correlation-Context headers and sets ParentId and Baggage on Activity. 33 | 34 | Instance of activity that has not been started yet. 35 | Request headers collection. 36 | true if request was parsed successfully, false - otherwise. 37 | 38 | 39 | 40 | Activity helper class 41 | 42 | 43 | 44 | 45 | Listener name. 46 | 47 | 48 | 49 | 50 | Activity name for http request. 51 | 52 | 53 | 54 | 55 | Event name for the activity start event. 56 | 57 | 58 | 59 | 60 | Event name for the activity stop event. 61 | 62 | 63 | 64 | 65 | Key to store the activity in HttpContext. 66 | 67 | 68 | 69 | 70 | It's possible that a request is executed in both native threads and managed threads, 71 | in such case Activity.Current will be lost during native thread and managed thread switch. 72 | This method is intended to restore the current activity in order to correlate the child 73 | activities with the root activity of the request. 74 | 75 | Root activity id for the current request. 76 | If it returns an activity, it will be silently stopped with the parent activity 77 | 78 | 79 | 80 | This should be called after the Activity starts and only for root activity of a request. 81 | 82 | Context to save context to. 83 | Activity to save. 84 | 85 | 86 | 87 | Http Module sets ambient state using Activity API from DiagnosticsSource package. 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | ETW EventSource tracing class. 99 | 100 | 101 | 102 | 103 | Instance of the PlatformEventSource class. 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /obj/Debug/AppInsightsBot.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\ApplicationInsights.config 2 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\StateBot.dll.config 3 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\StateBot.dll 4 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\StateBot.pdb 5 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Autofac.dll 6 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Chronic.dll 7 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.Agent.Intercept.dll 8 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.DependencyCollector.dll 9 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.PerfCounterCollector.dll 10 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.ServerTelemetryChannel.dll 11 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.Web.dll 12 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.WindowsServer.dll 13 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.ApplicationInsights.dll 14 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AspNet.TelemetryCorrelation.dll 15 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.Bot.Builder.Autofac.dll 16 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.Bot.Builder.dll 17 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.Bot.Connector.dll 18 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.IdentityModel.Protocol.Extensions.dll 19 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.Rest.ClientRuntime.dll 20 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.WindowsAzure.Configuration.dll 21 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Newtonsoft.Json.dll 22 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Diagnostics.DiagnosticSource.dll 23 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.IdentityModel.Tokens.Jwt.dll 24 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Net.Http.Formatting.dll 25 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Web.Http.dll 26 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Web.Http.WebHost.dll 27 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Autofac.xml 28 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.DependencyCollector.xml 29 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.ServerTelemetryChannel.xml 30 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.Web.xml 31 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AI.WindowsServer.xml 32 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.ApplicationInsights.xml 33 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.AspNet.TelemetryCorrelation.xml 34 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.Bot.Builder.xml 35 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.Bot.Builder.Autofac.xml 36 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.Bot.Connector.xml 37 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.IdentityModel.Protocol.Extensions.xml 38 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Microsoft.WindowsAzure.Configuration.xml 39 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\Newtonsoft.Json.xml 40 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Diagnostics.DiagnosticSource.xml 41 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.IdentityModel.Tokens.Jwt.xml 42 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Net.Http.Formatting.xml 43 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Web.Http.xml 44 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\System.Web.Http.WebHost.xml 45 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\ar\Microsoft.Bot.Builder.resources.dll 46 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\cs\Microsoft.Bot.Builder.resources.dll 47 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\de-dE\Microsoft.Bot.Builder.resources.dll 48 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\en\Microsoft.Bot.Builder.resources.dll 49 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\es\Microsoft.Bot.Builder.resources.dll 50 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\fa\Microsoft.Bot.Builder.resources.dll 51 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\fr\Microsoft.Bot.Builder.resources.dll 52 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\ja\Microsoft.Bot.Builder.resources.dll 53 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\ru\Microsoft.Bot.Builder.resources.dll 54 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\bin\zh-hans\Microsoft.Bot.Builder.resources.dll 55 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\obj\Debug\AppInsightsBot.csprojResolveAssemblyReference.cache 56 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\obj\Debug\AppInsightsBot.csproj.CoreCompileInputs.cache 57 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\obj\Debug\StateBot.dll 58 | C:\Users\tiyau\Desktop\BotBuilder-Samples-master\CSharp\core-AppInsights\obj\Debug\StateBot.pdb 59 | -------------------------------------------------------------------------------- /bin/Microsoft.Bot.Builder.Autofac.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.Bot.Builder.Autofac 5 | 6 | 7 | 8 | 9 | Register a component to be created through reflection, and 10 | provide a key that can be used to retrieve the component. 11 | 12 | 13 | This method leverages Autofac's autowiring of components through reflection, 14 | providing a key that directly reflects that component type, so that it might 15 | be retrieved by that key and possibly replaced in an adapter chain. 16 | 17 | The type of the component implementation. 18 | The service type provided by the component. 19 | Container builder. 20 | Registration builder allowing the registration to be configured. 21 | 22 | 23 | 24 | Register an adapter chain of components, exposing a shared service interface. 25 | 26 | 27 | This registers a factory method to create a adapter chain of components, based on wrapping each 28 | inner component with an adapter outer component. 29 | 30 | The service type provided by the component. 31 | Container builder. 32 | The services type keys that can be used to retrieve the components in the chain. 33 | Registration builder allowing the registration to be configured. 34 | 35 | 36 | 37 | The top level composition root for the SDK. 38 | 39 | 40 | 41 | 42 | Update the Autofac container. 43 | 44 | The delegate that represents the update to apply. 45 | 46 | 47 | 48 | Process an incoming message within the conversation. 49 | 50 | 51 | This method: 52 | 1. Instantiates and composes the required components. 53 | 2. Deserializes the dialog state (the dialog stack and each dialog's state) from the . 54 | 3. Resumes the conversation processes where the dialog suspended to wait for a . 55 | 4. Queues s to be sent to the user. 56 | 5. Serializes the updated dialog state in the messages to be sent to the user. 57 | 58 | The factory method is invoked for new conversations only, 59 | because existing conversations have the dialog stack and state serialized in the data. 60 | 61 | The message sent to the bot. 62 | The factory method to make the root dialog. 63 | The cancellation token. 64 | A task that represents the message to send inline back to the user. 65 | 66 | 67 | 68 | Resume a conversation and post the data to the dialog waiting. 69 | 70 | The resumption cookie. 71 | The data sent to bot. 72 | The cancellation token. 73 | A task that represent the message to send back to the user after resumption of the conversation. 74 | 75 | 76 | 77 | Resume a conversation and post the data to the dialog waiting. 78 | 79 | The resumption cookie. 80 | The data sent to bot. 81 | The cancellation token. 82 | A task that represent the message to send back to the user after resumption of the conversation. 83 | 84 | 85 | 86 | Autofac module for Dialog components. 87 | 88 | 89 | 90 | 91 | Autofac module for Fiber components. 92 | 93 | 94 | 95 | 96 | Eagerly enumerate the services keyed with that will not be serialized. 97 | 98 | 99 | Services marked with will not serialize their dependencies either. 100 | 101 | 102 | 103 | 104 | Autofac module for Fiber components. 105 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /packages/Microsoft.Bot.Builder.3.8.0/lib/net46/Microsoft.Bot.Builder.Autofac.XML: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.Bot.Builder.Autofac 5 | 6 | 7 | 8 | 9 | Register a component to be created through reflection, and 10 | provide a key that can be used to retrieve the component. 11 | 12 | 13 | This method leverages Autofac's autowiring of components through reflection, 14 | providing a key that directly reflects that component type, so that it might 15 | be retrieved by that key and possibly replaced in an adapter chain. 16 | 17 | The type of the component implementation. 18 | The service type provided by the component. 19 | Container builder. 20 | Registration builder allowing the registration to be configured. 21 | 22 | 23 | 24 | Register an adapter chain of components, exposing a shared service interface. 25 | 26 | 27 | This registers a factory method to create a adapter chain of components, based on wrapping each 28 | inner component with an adapter outer component. 29 | 30 | The service type provided by the component. 31 | Container builder. 32 | The services type keys that can be used to retrieve the components in the chain. 33 | Registration builder allowing the registration to be configured. 34 | 35 | 36 | 37 | The top level composition root for the SDK. 38 | 39 | 40 | 41 | 42 | Update the Autofac container. 43 | 44 | The delegate that represents the update to apply. 45 | 46 | 47 | 48 | Process an incoming message within the conversation. 49 | 50 | 51 | This method: 52 | 1. Instantiates and composes the required components. 53 | 2. Deserializes the dialog state (the dialog stack and each dialog's state) from the . 54 | 3. Resumes the conversation processes where the dialog suspended to wait for a . 55 | 4. Queues s to be sent to the user. 56 | 5. Serializes the updated dialog state in the messages to be sent to the user. 57 | 58 | The factory method is invoked for new conversations only, 59 | because existing conversations have the dialog stack and state serialized in the data. 60 | 61 | The message sent to the bot. 62 | The factory method to make the root dialog. 63 | The cancellation token. 64 | A task that represents the message to send inline back to the user. 65 | 66 | 67 | 68 | Resume a conversation and post the data to the dialog waiting. 69 | 70 | The resumption cookie. 71 | The data sent to bot. 72 | The cancellation token. 73 | A task that represent the message to send back to the user after resumption of the conversation. 74 | 75 | 76 | 77 | Resume a conversation and post the data to the dialog waiting. 78 | 79 | The resumption cookie. 80 | The data sent to bot. 81 | The cancellation token. 82 | A task that represent the message to send back to the user after resumption of the conversation. 83 | 84 | 85 | 86 | Autofac module for Dialog components. 87 | 88 | 89 | 90 | 91 | Autofac module for Fiber components. 92 | 93 | 94 | 95 | 96 | Eagerly enumerate the services keyed with that will not be serialized. 97 | 98 | 99 | Services marked with will not serialize their dependencies either. 100 | 101 | 102 | 103 | 104 | Autofac module for Fiber components. 105 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /StateDialog.cs: -------------------------------------------------------------------------------- 1 | namespace AppInsightsBot 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | using System.Web; 7 | using Microsoft.Bot.Builder.Dialogs; 8 | using Microsoft.Bot.Connector; 9 | using Newtonsoft.Json; 10 | 11 | [Serializable] 12 | public class StateDialog : IDialog 13 | { 14 | private const string HelpMessage = "\n * If you want to know which city I'm using for my searches type 'current city'. \n * Want to change the current city? Type 'change city to cityName'. \n * Want to change it just for your searches? Type 'change my city to cityName'"; 15 | private bool userWelcomed; 16 | 17 | public async Task StartAsync(IDialogContext context) 18 | { 19 | var telemetry = context.CreateTraceTelemetry(nameof(StartAsync), new Dictionary { { @"SetDefault", bool.FalseString } }); 20 | 21 | string defaultCity; 22 | 23 | if (!context.ConversationData.TryGetValue(ContextConstants.CityKey, out defaultCity)) 24 | { 25 | defaultCity = "Seattle"; 26 | context.ConversationData.SetValue(ContextConstants.CityKey, defaultCity); 27 | 28 | telemetry.Properties[@"SetDefault"] = bool.TrueString; 29 | } 30 | 31 | await context.PostAsync($"Welcome to the Search City bot. I'm currently configured to search for things in {defaultCity}"); 32 | 33 | WebApiApplication.Telemetry.TrackTrace(telemetry); 34 | 35 | context.Wait(this.MessageReceivedAsync); 36 | } 37 | 38 | public virtual async Task MessageReceivedAsync(IDialogContext context, IAwaitable result) 39 | { 40 | var message = await result; 41 | 42 | // Here's how we can serialize an entire object to an App Insights event 43 | WebApiApplication.Telemetry.TrackTrace(context.CreateTraceTelemetry( 44 | nameof(MessageReceivedAsync), 45 | new Dictionary { { "message", JsonConvert.SerializeObject(message) } })); 46 | 47 | string userName; 48 | 49 | if (!context.UserData.TryGetValue(ContextConstants.UserNameKey, out userName)) 50 | { 51 | var t = context.CreateEventTelemetry(@"new user"); 52 | t.Properties.Add("userName", userName); // You can add properties after-the-fact as well 53 | 54 | WebApiApplication.Telemetry.TrackEvent(t); 55 | 56 | PromptDialog.Text(context, this.ResumeAfterPrompt, "Before get started, please tell me your name?"); 57 | return; 58 | } 59 | 60 | if (!this.userWelcomed) 61 | { 62 | this.userWelcomed = true; 63 | await context.PostAsync($"Welcome back {userName}! Remember the rules: {HelpMessage}"); 64 | 65 | context.Wait(this.MessageReceivedAsync); 66 | return; 67 | } 68 | 69 | if (message.Text.Equals("current city", StringComparison.InvariantCultureIgnoreCase)) 70 | { 71 | WebApiApplication.Telemetry.TrackEvent(context.CreateEventTelemetry(@"current city")); 72 | 73 | string userCity; 74 | 75 | var city = context.ConversationData.Get(ContextConstants.CityKey); 76 | 77 | if (context.PrivateConversationData.TryGetValue(ContextConstants.CityKey, out userCity)) 78 | { 79 | await context.PostAsync($"{userName}, you have overridden the city. Your searches are for things in {userCity}. The default conversation city is {city}."); 80 | } 81 | else 82 | { 83 | await context.PostAsync($"Hey {userName}, I'm currently configured to search for things in {city}."); 84 | } 85 | } 86 | else if (message.Text.StartsWith("change city to", StringComparison.InvariantCultureIgnoreCase)) 87 | { 88 | WebApiApplication.Telemetry.TrackEvent(context.CreateEventTelemetry(@"change city to")); 89 | 90 | var newCity = message.Text.Substring("change city to".Length).Trim(); 91 | context.ConversationData.SetValue(ContextConstants.CityKey, newCity); 92 | 93 | await context.PostAsync($"All set {userName}. From now on, all my searches will be for things in {newCity}."); 94 | } 95 | else if (message.Text.StartsWith("change my city to", StringComparison.InvariantCultureIgnoreCase)) 96 | { 97 | WebApiApplication.Telemetry.TrackEvent(context.CreateEventTelemetry(@"change my city to")); 98 | 99 | var newCity = message.Text.Substring("change my city to".Length).Trim(); 100 | context.PrivateConversationData.SetValue(ContextConstants.CityKey, newCity); 101 | 102 | await context.PostAsync($"All set {userName}. I have overridden the city to {newCity} just for you."); 103 | } 104 | else 105 | { 106 | var measuredEvent = context.CreateEventTelemetry(@"search"); 107 | var timer = new System.Diagnostics.Stopwatch(); 108 | timer.Start(); 109 | 110 | try 111 | { 112 | string city; 113 | 114 | if (!context.PrivateConversationData.TryGetValue(ContextConstants.CityKey, out city)) 115 | { 116 | city = context.ConversationData.Get(ContextConstants.CityKey); 117 | } 118 | 119 | await context.PostAsync($"{userName}, wait a few seconds. Searching for '{message.Text}' in '{city}'..."); 120 | await context.PostAsync($"https://www.bing.com/search?q={HttpUtility.UrlEncode(message.Text)}+in+{HttpUtility.UrlEncode(city)}"); 121 | } 122 | catch (Exception ex) 123 | { 124 | measuredEvent.Properties.Add("exception", ex.ToString()); 125 | WebApiApplication.Telemetry.TrackException(context.CreateExceptionTelemetry(ex)); 126 | } 127 | finally 128 | { 129 | timer.Stop(); 130 | measuredEvent.Metrics.Add(@"timeTakenMs", timer.ElapsedMilliseconds); 131 | 132 | WebApiApplication.Telemetry.TrackEvent(measuredEvent); 133 | } 134 | } 135 | 136 | context.Wait(this.MessageReceivedAsync); 137 | } 138 | 139 | private async Task ResumeAfterPrompt(IDialogContext context, IAwaitable result) 140 | { 141 | try 142 | { 143 | var userName = await result; 144 | this.userWelcomed = true; 145 | 146 | await context.PostAsync($"Welcome {userName}! {HelpMessage}"); 147 | 148 | context.UserData.SetValue(ContextConstants.UserNameKey, userName); 149 | } 150 | catch (TooManyAttemptsException ex) 151 | { 152 | WebApiApplication.Telemetry.TrackException(context.CreateExceptionTelemetry(ex)); 153 | } 154 | finally 155 | { 156 | // It's a good idea to log telemetry in finally {} blocks so you don't end up with gaps of execution 157 | // as you follow a conversation 158 | WebApiApplication.Telemetry.TrackTrace(context.CreateTraceTelemetry(nameof(ResumeAfterPrompt))); 159 | } 160 | 161 | context.Wait(this.MessageReceivedAsync); 162 | } 163 | } 164 | } 165 | -------------------------------------------------------------------------------- /ApplicationInsights.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | search|spider|crawl|Bot|Monitor|AlwaysOn 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | a418cdb2-86a1-477b-89f9-8b8b21ee20bc 24 | 25 | 26 | 27 | 33 | core.windows.net 34 | core.chinacloudapi.cn 35 | core.cloudapi.de 36 | core.usgovcloudapi.net 37 | localhost 38 | 127.0.0.1 39 | 40 | 41 | 42 | 59 | 60 | 61 | 62 | 63 | 64 | 66 | 67 | 68 | 69 | 74 | System.Web.Handlers.TransferRequestHandler 75 | Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler 76 | System.Web.StaticFileHandler 77 | System.Web.Handlers.AssemblyResourceLoader 78 | System.Web.Optimization.BundleHandler 79 | System.Web.Script.Services.ScriptHandlerFactory 80 | System.Web.Handlers.TraceHandler 81 | System.Web.Services.Discovery.DiscoveryRequestHandler 82 | System.Web.HttpDebugHandler 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 5 93 | Event 94 | 95 | 96 | 5 97 | Event 98 | 99 | 100 | 101 | 107 | -------------------------------------------------------------------------------- /bin/ApplicationInsights.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | search|spider|crawl|Bot|Monitor|AlwaysOn 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | a418cdb2-86a1-477b-89f9-8b8b21ee20bc 24 | 25 | 26 | 27 | 33 | core.windows.net 34 | core.chinacloudapi.cn 35 | core.cloudapi.de 36 | core.usgovcloudapi.net 37 | localhost 38 | 127.0.0.1 39 | 40 | 41 | 42 | 59 | 60 | 61 | 62 | 63 | 64 | 66 | 67 | 68 | 69 | 74 | System.Web.Handlers.TransferRequestHandler 75 | Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler 76 | System.Web.StaticFileHandler 77 | System.Web.Handlers.AssemblyResourceLoader 78 | System.Web.Optimization.BundleHandler 79 | System.Web.Script.Services.ScriptHandlerFactory 80 | System.Web.Handlers.TraceHandler 81 | System.Web.Services.Discovery.DiscoveryRequestHandler 82 | System.Web.HttpDebugHandler 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 5 93 | Event 94 | 95 | 96 | 5 97 | Event 98 | 99 | 100 | 101 | 107 | -------------------------------------------------------------------------------- /bin/Microsoft.WindowsAzure.Configuration.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.WindowsAzure.Configuration 5 | 6 | 7 | 8 | 9 | Configuration manager for accessing Microsoft Azure settings. 10 | 11 | 12 | 13 | 14 | Gets a setting with the given name. 15 | 16 | Setting name. 17 | If true, this will write that a setting was retrieved to Trace. If false, this will not write anything to Trace. 18 | If true, method will throw exception if setting not found in ServiceRuntime. 19 | Setting value or null if not found. 20 | 21 | 22 | 23 | Gets a setting with the given name. 24 | 25 | Setting name. 26 | If true, this will write that a setting was retrieved to Trace. If false, this will not write anything to Trace. 27 | Setting value or null if not found. 28 | 29 | 30 | 31 | Gets a setting with the given name. Trace results. 32 | 33 | This overloaded function is kept for backward compatibility. 34 | Setting name. 35 | Setting value or null if not found. 36 | 37 | 38 | 39 | Gets application settings. 40 | 41 | 42 | 43 | 44 | Microsoft Azure settings. 45 | 46 | 47 | 48 | 49 | Initializes the settings. 50 | 51 | 52 | 53 | 54 | Checks whether the given exception represents an exception throws 55 | for a missing setting. 56 | 57 | Exception 58 | True for the missing setting exception. 59 | 60 | 61 | 62 | Gets a setting with the given name. 63 | Setting throwIfNotFound to true will result in blow up the app if it can't find the setting 64 | 65 | Setting name. 66 | 67 | /// 68 | Setting value or null if such setting does not exist. 69 | 70 | 71 | 72 | Gets a setting with the given name. 73 | 74 | Setting name. 75 | 76 | Setting value or null if such setting does not exist. 77 | 78 | 79 | 80 | Gets a setting with the given name. This method is included for backwards compatibility. 81 | 82 | Setting name. 83 | Setting value or null if such setting does not exist. 84 | 85 | 86 | 87 | Gets setting's value from the given provider. 88 | 89 | Provider name. 90 | Setting name 91 | Method to obtain given setting. 92 | Setting value, or null if not found. 93 | 94 | 95 | 96 | Gets a configuration setting from the service runtime. 97 | 98 | Setting name. 99 | Setting value or null if not found. 100 | 101 | 102 | 103 | Loads and returns the latest available version of the service 104 | runtime assembly. 105 | 106 | Loaded assembly, if any. 107 | 108 | 109 | 110 | Writes to trace output if WriteToTrace is true 111 | 112 | The message to write to Trace 113 | 114 | 115 | 116 | Gets an assembly path from the GAC given a partial name. 117 | 118 | An assembly partial name. May not be null. 119 | 120 | The assembly path if found; otherwise null; 121 | 122 | 123 | 124 | 125 | A strongly-typed resource class, for looking up localized strings, etc. 126 | 127 | 128 | 129 | 130 | Returns the cached ResourceManager instance used by this class. 131 | 132 | 133 | 134 | 135 | Overrides the current thread's CurrentUICulture property for all 136 | resource lookups using this strongly typed resource class. 137 | 138 | 139 | 140 | 141 | Looks up a localized string similar to Argument "{0}" cannot be an empty string.. 142 | 143 | 144 | 145 | 146 | Looks up a localized string similar to Setting: "{0}" was not found in the ServiceRuntime.. 147 | 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /packages/Microsoft.WindowsAzure.ConfigurationManager.3.2.3/lib/net40/Microsoft.WindowsAzure.Configuration.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.WindowsAzure.Configuration 5 | 6 | 7 | 8 | 9 | Configuration manager for accessing Microsoft Azure settings. 10 | 11 | 12 | 13 | 14 | Gets a setting with the given name. 15 | 16 | Setting name. 17 | If true, this will write that a setting was retrieved to Trace. If false, this will not write anything to Trace. 18 | If true, method will throw exception if setting not found in ServiceRuntime. 19 | Setting value or null if not found. 20 | 21 | 22 | 23 | Gets a setting with the given name. 24 | 25 | Setting name. 26 | If true, this will write that a setting was retrieved to Trace. If false, this will not write anything to Trace. 27 | Setting value or null if not found. 28 | 29 | 30 | 31 | Gets a setting with the given name. Trace results. 32 | 33 | This overloaded function is kept for backward compatibility. 34 | Setting name. 35 | Setting value or null if not found. 36 | 37 | 38 | 39 | Gets application settings. 40 | 41 | 42 | 43 | 44 | Microsoft Azure settings. 45 | 46 | 47 | 48 | 49 | Initializes the settings. 50 | 51 | 52 | 53 | 54 | Checks whether the given exception represents an exception throws 55 | for a missing setting. 56 | 57 | Exception 58 | True for the missing setting exception. 59 | 60 | 61 | 62 | Gets a setting with the given name. 63 | Setting throwIfNotFound to true will result in blow up the app if it can't find the setting 64 | 65 | Setting name. 66 | 67 | /// 68 | Setting value or null if such setting does not exist. 69 | 70 | 71 | 72 | Gets a setting with the given name. 73 | 74 | Setting name. 75 | 76 | Setting value or null if such setting does not exist. 77 | 78 | 79 | 80 | Gets a setting with the given name. This method is included for backwards compatibility. 81 | 82 | Setting name. 83 | Setting value or null if such setting does not exist. 84 | 85 | 86 | 87 | Gets setting's value from the given provider. 88 | 89 | Provider name. 90 | Setting name 91 | Method to obtain given setting. 92 | Setting value, or null if not found. 93 | 94 | 95 | 96 | Gets a configuration setting from the service runtime. 97 | 98 | Setting name. 99 | Setting value or null if not found. 100 | 101 | 102 | 103 | Loads and returns the latest available version of the service 104 | runtime assembly. 105 | 106 | Loaded assembly, if any. 107 | 108 | 109 | 110 | Writes to trace output if WriteToTrace is true 111 | 112 | The message to write to Trace 113 | 114 | 115 | 116 | Gets an assembly path from the GAC given a partial name. 117 | 118 | An assembly partial name. May not be null. 119 | 120 | The assembly path if found; otherwise null; 121 | 122 | 123 | 124 | 125 | A strongly-typed resource class, for looking up localized strings, etc. 126 | 127 | 128 | 129 | 130 | Returns the cached ResourceManager instance used by this class. 131 | 132 | 133 | 134 | 135 | Overrides the current thread's CurrentUICulture property for all 136 | resource lookups using this strongly typed resource class. 137 | 138 | 139 | 140 | 141 | Looks up a localized string similar to Argument "{0}" cannot be an empty string.. 142 | 143 | 144 | 145 | 146 | Looks up a localized string similar to Setting: "{0}" was not found in the ServiceRuntime.. 147 | 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /bin/System.Web.Http.WebHost.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | System.Web.Http.WebHost 5 | 6 | 7 | 8 | Provides a global for ASP.NET applications. 9 | 10 | 11 | 12 | 13 | 14 | Gets the global . 15 | 16 | 17 | Extension methods for 18 | 19 | 20 | Maps the specified route template. 21 | A reference to the mapped route. 22 | A collection of routes for the application. 23 | The name of the route to map. 24 | The route template for the route. 25 | 26 | 27 | Maps the specified route template and sets default route. 28 | A reference to the mapped route. 29 | A collection of routes for the application. 30 | The name of the route to map. 31 | The route template for the route. 32 | An object that contains default route values. 33 | 34 | 35 | Maps the specified route template and sets default route values and constraints. 36 | A reference to the mapped route. 37 | A collection of routes for the application. 38 | The name of the route to map. 39 | The route template for the route. 40 | An object that contains default route values. 41 | A set of expressions that specify values for routeTemplate. 42 | 43 | 44 | Maps the specified route template and sets default route values, constraints, and end-point message handler. 45 | A reference to the mapped route. 46 | A collection of routes for the application. 47 | The name of the route to map. 48 | The route template for the route. 49 | An object that contains default route values. 50 | A set of expressions that specify values for routeTemplate. 51 | The handler to which the request will be dispatched. 52 | 53 | 54 | A that passes ASP.NET requests into the pipeline and write the result back. 55 | 56 | 57 | Initializes a new instance of the class. 58 | The route data. 59 | 60 | 61 | Initializes a new instance of the class. 62 | The route data. 63 | The message handler to dispatch requests to. 64 | 65 | 66 | Provides code that handles an asynchronous task 67 | The asynchronous task. 68 | The HTTP context. 69 | 70 | 71 | A that returns instances of that can pass requests to a given instance. 72 | 73 | 74 | Initializes a new instance of the class. 75 | 76 | 77 | Provides the object that processes the request. 78 | An object that processes the request. 79 | An object that encapsulates information about the request. 80 | 81 | 82 | Gets the singleton instance. 83 | 84 | 85 | Provides the object that processes the request. 86 | An object that processes the request. 87 | An object that encapsulates information about the request. 88 | 89 | 90 | Provides a registration point for the simple membership pre-application start code. 91 | 92 | 93 | Registers the simple membership pre-application start code. 94 | 95 | 96 | Represents the web host buffer policy selector. 97 | 98 | 99 | Initializes a new instance of the class. 100 | 101 | 102 | Gets a value that indicates whether the host should buffer the entity body of the HTTP request. 103 | true if buffering should be used; otherwise a streamed request should be used. 104 | The host context. 105 | 106 | 107 | Uses a buffered output stream for the web host. 108 | A buffered output stream. 109 | The response. 110 | 111 | 112 | Provides the catch blocks used within this assembly. 113 | 114 | 115 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 116 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 117 | 118 | 119 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 120 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 121 | 122 | 123 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 124 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 125 | 126 | 127 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 128 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 129 | 130 | 131 | Gets the label for the catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 132 | The catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 133 | 134 | 135 | -------------------------------------------------------------------------------- /packages/Microsoft.AspNet.WebApi.WebHost.5.2.3/lib/net45/System.Web.Http.WebHost.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | System.Web.Http.WebHost 5 | 6 | 7 | 8 | Provides a global for ASP.NET applications. 9 | 10 | 11 | 12 | 13 | 14 | Gets the global . 15 | 16 | 17 | Extension methods for 18 | 19 | 20 | Maps the specified route template. 21 | A reference to the mapped route. 22 | A collection of routes for the application. 23 | The name of the route to map. 24 | The route template for the route. 25 | 26 | 27 | Maps the specified route template and sets default route. 28 | A reference to the mapped route. 29 | A collection of routes for the application. 30 | The name of the route to map. 31 | The route template for the route. 32 | An object that contains default route values. 33 | 34 | 35 | Maps the specified route template and sets default route values and constraints. 36 | A reference to the mapped route. 37 | A collection of routes for the application. 38 | The name of the route to map. 39 | The route template for the route. 40 | An object that contains default route values. 41 | A set of expressions that specify values for routeTemplate. 42 | 43 | 44 | Maps the specified route template and sets default route values, constraints, and end-point message handler. 45 | A reference to the mapped route. 46 | A collection of routes for the application. 47 | The name of the route to map. 48 | The route template for the route. 49 | An object that contains default route values. 50 | A set of expressions that specify values for routeTemplate. 51 | The handler to which the request will be dispatched. 52 | 53 | 54 | A that passes ASP.NET requests into the pipeline and write the result back. 55 | 56 | 57 | Initializes a new instance of the class. 58 | The route data. 59 | 60 | 61 | Initializes a new instance of the class. 62 | The route data. 63 | The message handler to dispatch requests to. 64 | 65 | 66 | Provides code that handles an asynchronous task 67 | The asynchronous task. 68 | The HTTP context. 69 | 70 | 71 | A that returns instances of that can pass requests to a given instance. 72 | 73 | 74 | Initializes a new instance of the class. 75 | 76 | 77 | Provides the object that processes the request. 78 | An object that processes the request. 79 | An object that encapsulates information about the request. 80 | 81 | 82 | Gets the singleton instance. 83 | 84 | 85 | Provides the object that processes the request. 86 | An object that processes the request. 87 | An object that encapsulates information about the request. 88 | 89 | 90 | Provides a registration point for the simple membership pre-application start code. 91 | 92 | 93 | Registers the simple membership pre-application start code. 94 | 95 | 96 | Represents the web host buffer policy selector. 97 | 98 | 99 | Initializes a new instance of the class. 100 | 101 | 102 | Gets a value that indicates whether the host should buffer the entity body of the HTTP request. 103 | true if buffering should be used; otherwise a streamed request should be used. 104 | The host context. 105 | 106 | 107 | Uses a buffered output stream for the web host. 108 | A buffered output stream. 109 | The response. 110 | 111 | 112 | Provides the catch blocks used within this assembly. 113 | 114 | 115 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 116 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync. 117 | 118 | 119 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 120 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync. 121 | 122 | 123 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 124 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength. 125 | 126 | 127 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 128 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync. 129 | 130 | 131 | Gets the label for the catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 132 | The catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData. 133 | 134 | 135 | --------------------------------------------------------------------------------