From b17694e9e7dbb46cb23d97e55856a79c37ac10c3 Mon Sep 17 00:00:00 2001 From: JhontSouth Date: Thu, 12 Oct 2023 10:21:34 -0500 Subject: [PATCH] change bot name --- .../Bots/{AuthCertificateBot.cs => AuthSNIBot.cs} | 4 +--- .../csharp_dotnetcore/85.bot-authentication-sni/Startup.cs | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) rename samples/csharp_dotnetcore/85.bot-authentication-sni/Bots/{AuthCertificateBot.cs => AuthSNIBot.cs} (90%) diff --git a/samples/csharp_dotnetcore/85.bot-authentication-sni/Bots/AuthCertificateBot.cs b/samples/csharp_dotnetcore/85.bot-authentication-sni/Bots/AuthSNIBot.cs similarity index 90% rename from samples/csharp_dotnetcore/85.bot-authentication-sni/Bots/AuthCertificateBot.cs rename to samples/csharp_dotnetcore/85.bot-authentication-sni/Bots/AuthSNIBot.cs index 463bd2e6ef..fd8300485a 100644 --- a/samples/csharp_dotnetcore/85.bot-authentication-sni/Bots/AuthCertificateBot.cs +++ b/samples/csharp_dotnetcore/85.bot-authentication-sni/Bots/AuthSNIBot.cs @@ -5,13 +5,11 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.Bot.Builder; -using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Schema; -using Microsoft.Extensions.Logging; namespace Microsoft.BotBuilderSamples { - public class AuthCertificateBot : ActivityHandler + public class AuthSNIBot : ActivityHandler { protected override async Task OnMembersAddedAsync(IList membersAdded, ITurnContext turnContext, CancellationToken cancellationToken) { diff --git a/samples/csharp_dotnetcore/85.bot-authentication-sni/Startup.cs b/samples/csharp_dotnetcore/85.bot-authentication-sni/Startup.cs index ce201c1cdd..a310c4372f 100644 --- a/samples/csharp_dotnetcore/85.bot-authentication-sni/Startup.cs +++ b/samples/csharp_dotnetcore/85.bot-authentication-sni/Startup.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System; -using System.Security.Cryptography.X509Certificates; using Azure.Identity; using Azure.Security.KeyVault.Certificates; using Microsoft.AspNetCore.Builder; @@ -76,7 +75,7 @@ public void ConfigureServices(IServiceCollection services) services.AddSingleton(); // Create the bot as a transient. In this case the ASP Controller is expecting an IBot. - services.AddTransient(); + services.AddTransient(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.