Skip to content

Commit

Permalink
#1793 update src\AzureIoTHub.Portal.Server\Startup.cs missing reference
Browse files Browse the repository at this point in the history
- Missing reference
  • Loading branch information
delager committed Mar 24, 2023
1 parent a70e761 commit 14ac2aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AzureIoTHub.Portal.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand Down

0 comments on commit 14ac2aa

Please sign in to comment.