From 14ac2aad564299cb0b32f8474e949aa15835b4f8 Mon Sep 17 00:00:00 2001 From: delager <raphael.delage@cgi.com> Date: Fri, 24 Mar 2023 10:36:12 +0100 Subject: [PATCH] #1793 update src\AzureIoTHub.Portal.Server\Startup.cs missing reference - Missing reference --- src/AzureIoTHub.Portal.Server/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AzureIoTHub.Portal.Server/Startup.cs b/src/AzureIoTHub.Portal.Server/Startup.cs index 18eaac931..ce066c009 100644 --- a/src/AzureIoTHub.Portal.Server/Startup.cs +++ b/src/AzureIoTHub.Portal.Server/Startup.cs @@ -82,10 +82,10 @@ public void ConfigureServices(IServiceCollection services) if (configuration.CloudProvider.Equals(CloudProviders.AWS, StringComparison.Ordinal)) { -_ = services.AddSingleton(() => new AmazonIoTClient(configuration.AWSAccess, configuration.AWSAccessSecret, RegionEndpoint.GetBySystemName(configuration.AWSRegion))); + _ = services.AddSingleton(() => new AmazonIoTClient(configuration.AWSAccess, configuration.AWSAccessSecret, RegionEndpoint.GetBySystemName(configuration.AWSRegion))); _ = services.AddSingleton(async sp => { - var endpoint = await sp.GetService<AmazonIoTClient>().DescribeEndpointAsync(new DescribeEndpointRequest + var endpoint = await sp.GetService<AmazonIoTClient>().DescribeEndpointAsync(new Amazon.IoT.Model.DescribeEndpointRequest { EndpointType = "iot:Data-ATS" });