Skip to content

refactor: clean up unused usings across multiple files

d05583b
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Native AOT Support via Source Generator + UnsafeAccessor Architecture #49

refactor: clean up unused usings across multiple files
d05583b
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results (Windows) failed Jul 24, 2025 in 1s

20 passed, 18 failed and 0 skipped

Tests failed

❌ tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx

38 tests were completed in 17s with 20 passed, 18 failed and 0 skipped.

Test suite Passed Failed Skipped Time
LocalStack.Client.Extensions.Tests.AwsClientFactoryWrapperTests 3βœ… 1s
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests 17βœ… 18❌ 1s

βœ…Β LocalStack.Client.Extensions.Tests.AwsClientFactoryWrapperTests

βœ… CreateServiceClient_Should_Create_Client_When_UseLocalStack_False
βœ… CreateServiceClient_Should_Throw_LocalStackClientConfigurationException_When_ClientFactory_Type_Not_Found
βœ… CreateServiceClient_Should_Throw_LocalStackClientConfigurationException_When_ClientFactoryType_Is_Null

❌ LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests

βœ… AddLocalStack_Should_Configure_ConfigOptions_By_Session_Section
βœ… AddLocalStack_Should_Configure_ConfigOptions_If_There_Is_Not_Session_Section
βœ… AddLocalStack_Should_Configure_LocalStackOptions_By_LocalStack_Section
βœ… AddLocalStack_Should_Configure_LocalStackOptions_If_There_Is_Not_LocalStack_Section
βœ… AddLocalStack_Should_Configure_SessionOptions_By_Session_Section
βœ… AddLocalStack_Should_Configure_SessionOptions_If_There_Is_Not_Session_Section
βœ… AddLocalStackServices_Should_Add_IAwsClientFactoryWrapper_To_Container_As_AwsClientFactoryWrapper
βœ… AddLocalStackServices_Should_Add_IConfig_To_Container_As_Config
βœ… AddLocalStackServices_Should_Add_ISession_To_Container_As_Session
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: False, useServiceUrl: False)
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: False, useServiceUrl: True)
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: True, useServiceUrl: False)
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: True, useServiceUrl: True)
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "af-south-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ap-southeast-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ca-central-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-central-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-west-2")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "sa-east-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "us-west-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "af-south-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ap-southeast-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ca-central-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-central-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-west-2")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "sa-east-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
❌ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "us-west-1")
	System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: False, useServiceUrl: False)
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: False, useServiceUrl: True)
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: True, useServiceUrl: False)
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: True, useServiceUrl: True)
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: False, useServiceUrl: False)
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: False, useServiceUrl: True)
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: True, useServiceUrl: False)
βœ… GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: True, useServiceUrl: True)

Annotations

Check failure on line 273 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 273 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 273 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 273 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "af-south-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ap-southeast-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ca-central-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-central-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-west-2")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "sa-east-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "us-west-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "af-south-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ap-southeast-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ca-central-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-central-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-west-2")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "sa-east-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 231 in tests/LocalStack.Client.Extensions.Tests/ServiceCollectionExtensionsTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results (Windows)

LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests β–Ί GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "us-west-1")

Failed test found in:
  tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
  System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
   at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
   at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
   at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
   at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)