From 39f9638526c01891c17a16e38fad07330bef29f5 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:04:14 -0500 Subject: [PATCH 01/25] refactor: changed name to MinimalLambda --- AwsLambda.Host.sln | 47 ++++++------ .../BenchmarkConfig.cs | 2 +- .../Benchmarks.cs | 6 +- .../MinimalLambda.Benchmarks.csproj} | 2 +- .../Program.cs | 1 - .../MinimalLambda.Example.Events.csproj} | 10 +-- .../Program.cs | 3 +- .../Properties/launchSettings.json | 0 .../appsettings.json | 0 .../MinimalLambda.Example.HelloWorld.csproj} | 6 +- .../Program.cs | 2 +- .../Properties/launchSettings.json | 0 .../appsettings.json | 0 ...inimalLambda.Example.HelloWorldAot.csproj} | 4 +- .../Program.cs | 2 +- .../Properties/launchSettings.json | 0 .../MinimalLambda.Example.Lifecycle.csproj} | 4 +- .../Program.cs | 2 +- .../Properties/launchSettings.json | 0 .../appsettings.json | 0 .../Function.cs | 4 +- .../IService.cs | 2 +- .../Instrumentation.cs | 2 +- ...inimalLambda.Example.OpenTelemetry.csproj} | 8 +- .../Models.cs | 2 +- .../NameMetrics.cs | 2 +- .../OpenTelemetryRegistrationExtensions.cs | 2 +- .../Program.cs | 6 +- .../Properties/launchSettings.json | 0 .../README.md | 0 .../Service.cs | 2 +- .../docker-compose.yml | 0 ...mbda.Host.Example.OpenTelemetry Event.json | 0 .../TemplateHelper.cs | 53 ------------- .../Templates/GenericHandler.scriban | 55 -------------- .../InterceptsLocationAttribute.scriban | 26 ------- .../Templates/MapHandler.scriban | 76 ------------------- src/AwsLambda.Host/GlobalUsings.cs | 4 - .../AlbRequestEnvelope.cs | 3 +- .../AlbRequestEnvelopeBase.cs | 3 +- .../AlbResponseEnvelope.cs | 3 +- .../AlbResponseEnvelopeBase.cs | 3 +- .../MinimalLambda.Envelopes.Alb.csproj} | 4 +- .../README.md | 0 .../ApiGatewayRequestEnvelope.cs | 3 +- .../ApiGatewayRequestEnvelopeBase.cs | 3 +- .../ApiGatewayResponseEnvelope.cs | 3 +- .../ApiGatewayResponseEnvelopeBase.cs | 3 +- .../ApiGatewayV2RequestEnvelope.cs | 3 +- .../ApiGatewayV2RequestEnvelopeBase.cs | 3 +- .../ApiGatewayV2ResponseEnvelope.cs | 3 +- .../ApiGatewayV2ResponseEnvelopeBase.cs | 3 +- ...MinimalLambda.Envelopes.ApiGateway.csproj} | 4 +- .../README.md | 0 .../CloudWatchLogsEnvelope.cs | 2 +- .../CloudWatchLogsEnvelopeBase.cs | 3 +- .../CloudWatchLogsEnvelopeT.cs | 3 +- ...malLambda.Envelopes.CloudWatchLogs.csproj} | 4 +- .../README.md | 0 .../SAMPLE_EVENTS.md | 0 .../KafkaEnvelope.cs | 0 .../KafkaEnvelopeBase.cs | 0 .../MinimalLambda.Envelopes.Kafka.csproj} | 5 +- .../README.md | 0 .../KinesisEnvelope.cs | 3 +- .../KinesisEnvelopeBase.cs | 3 +- .../MinimalLambda.Envelopes.Kinesis.csproj} | 4 +- .../README.md | 0 .../KinesisFirehoseEventEnvelope.cs | 3 +- .../KinesisFirehoseEventEnvelopeBase.cs | 3 +- .../KinesisFirehoseResponseEnvelope.cs | 3 +- .../KinesisFirehoseResponseEnvelopeBase.cs | 3 +- ...alLambda.Envelopes.KinesisFirehose.csproj} | 4 +- .../README.md | 0 .../MinimalLambda.Envelopes.Sns.csproj} | 4 +- .../README.md | 0 .../SnsEnvelope.cs | 3 +- .../SnsEnvelopeBase.cs | 3 +- .../MinimalLambda.Envelopes.Sqs.csproj} | 6 +- .../README.md | 0 .../SqsEnvelope.cs | 3 +- .../SqsEnvelopeBase.cs | 3 +- .../SqsSnsEnvelope.cs | 5 +- .../Builders/ILambdaInvocationBuilder.cs | 0 .../Builders/ILambdaOnInitBuilder.cs | 0 .../Builders/ILambdaOnShutdownBuilder.cs | 0 .../Core/ILambdaCancellationFactory.cs | 0 .../Core/ILambdaHostContext.cs | 0 .../Core/ILambdaHostContextAccessor.cs | 0 .../Delegates/LambdaInitDelegate.cs | 0 .../Delegates/LambdaInvocationDelegate.cs | 0 .../Delegates/LambdaShutdownDelegate.cs | 0 .../Envelopes/IRequestEnvelope.cs | 0 .../Envelopes/IResponseEnvelope.cs | 0 .../Features/IEventFeature.cs | 0 .../Features/IEventFeatureProviderFactory.cs | 0 .../Features/IEventFeatureT.cs | 0 .../Features/IFeatureCollection.cs | 0 .../Features/IFeatureProvider.cs | 0 .../Features/IInvocationDataFeature.cs | 0 .../Features/IResponseFeature.cs | 0 .../IResponseFeatureProviderFactory.cs | 0 .../Features/IResponseFeatureT.cs | 0 .../GlobalUsings.cs | 0 .../MinimalLambda.Abstractions.csproj} | 2 +- .../Options/EnvelopeOptions.cs | 0 .../README.md | 0 .../DefaultLambdaInvocationBuilderFactory.cs | 2 +- .../DefaultLambdaOnInitBuilderFactory.cs | 2 +- .../DefaultLambdaOnShutdownBuilderFactory.cs | 2 +- .../Builder/EventAttribute.cs | 2 +- .../BuilderLambdaApplicationExtensions.cs | 2 +- ...onfigurationServiceCollectionExtensions.cs | 0 ...daHttpClientServiceCollectionExtensions.cs | 2 +- .../MiddlewareLambdaApplicationExtensions.cs | 2 +- .../SerializerServiceCollectionExtensions.cs | 0 .../Extensions/ServiceCollectionExtensions.cs | 0 .../ILambdaInvocationBuilderFactory.cs | 2 +- .../Builder/ILambdaOnInitBuilderFactory.cs | 2 +- .../ILambdaOnShutdownBuilderFactory.cs | 2 +- .../MapHandlerLambdaApplicationExtensions.cs | 2 +- .../OnInitLambdaApplicationExtensions.cs | 2 +- .../OnShutdownLambdaApplicationExtensions.cs | 2 +- .../Builder/LambdaApplication.cs | 2 +- .../Builder/LambdaApplicationBuilder.cs | 2 +- .../Builder/LambdaInvocationBuilder.cs | 2 +- .../Builder/LambdaOnInitBuilder.cs | 2 +- .../Builder/LambdaOnShutdownBuilder.cs | 2 +- .../ClearLambdaOutputFormattingMiddleware.cs | 2 +- .../Middleware/RequestEnvelopeMiddleware.cs | 4 +- ...utFormattingLambdaApplicationExtensions.cs | 3 +- .../DefaultLambdaCancellationFactory.cs | 2 +- .../Core/Context/DefaultLambdaHostContext.cs | 2 +- .../Core/Context/ILambdaHostContextFactory.cs | 2 +- .../Core/Context/LambdaHostContextAccessor.cs | 2 +- .../Core/Context/LambdaHostContextFactory.cs | 2 +- .../Core/Features/DefaultEventFeature.cs | 2 +- .../Features/DefaultEventFeatureProvider.cs | 2 +- .../Core/Features/DefaultFeatureCollection.cs | 2 +- .../DefaultFeatureCollectionFactory.cs | 2 +- .../Core/Features/DefaultResponseFeature.cs | 2 +- .../DefaultResponseFeatureProvider.cs | 2 +- .../Features/EventFeatureProviderFactory.cs | 2 +- .../Features/FeatureCollectionExtensions.cs | 2 +- .../FeatureLambdaHostContextExtensions.cs | 2 +- .../Features/IFeatureCollectionFactory.cs | 2 +- .../Features/IInvocationDataFeatureFactory.cs | 2 +- .../Core/Features/InvocationDataFeature.cs | 2 +- .../Features/InvocationDataFeatureFactory.cs | 2 +- .../ResponseFeatureProviderFactory.cs | 2 +- .../EnvelopeOptionsPostConfiguration.cs | 2 +- .../Options/HostOptionsPostConfiguration.cs | 2 +- .../Core/Options/LambdaApplicationOptions.cs | 2 +- .../Core/Options/LambdaHostOptions.cs | 4 +- .../Options/LambdaHostedServiceOptions.cs | 2 +- .../Core/Options/ShutdownDuration.cs | 2 +- src/MinimalLambda.Core/GlobalUsings.cs | 4 + .../MinimalLambda.Core.csproj} | 7 +- .../Properties/AssemblyInfo.cs | 2 +- .../README.md | 0 .../Runtime/ILambdaBootstrapOrchestrator.cs | 2 +- .../Runtime/ILambdaHandlerFactory.cs | 2 +- .../Runtime/LambdaBootstrapAdapter.cs | 2 +- .../Runtime/LambdaHandlerComposer.cs | 2 +- .../Runtime/LambdaHostedService.cs | 2 +- .../build/AwsLambda.Host.targets | 0 .../LambdaOpenTelemetryAdapters.cs | 0 .../MiddlewareOpenTelemetryExtensions.cs | 0 .../MinimalLambda.OpenTelemetry.csproj} | 4 +- .../OnShutdownOpenTelemetryExtensions.cs | 2 +- .../README.md | 0 .../AnalyzerReleases.Shipped.md | 0 .../AnalyzerReleases.Unshipped.md | 0 .../Diagnostics/DiagnosticGenerator.cs | 6 +- .../Diagnostics/Diagnostics.cs | 2 +- .../Extensions/DelegateInfoExtensions.cs | 4 +- .../Extensions/SyntaxExtensions.cs | 2 +- .../Extensions/TypeExtractorExtensions.cs | 2 +- .../Extensions/TypeSymbolExtensions.cs | 2 +- .../GeneratorConstants.cs | 2 +- .../MapHandlerIncrementalGenerator.cs | 6 +- .../MinimalLambda.SourceGenerators.csproj} | 0 .../Models/ArgumentInfo.cs | 2 +- .../Models/CompilationInfo.cs | 4 +- .../Models/DelegateInfo.cs | 4 +- .../Models/HigherOrderMethodInfo.cs | 2 +- .../Models/InterceptableLocationInfo.cs | 2 +- .../Models/KeyedServiceKeyInfo.cs | 4 +- .../Models/LocationInfo.cs | 2 +- .../Models/ParameterInfo.cs | 2 +- .../Models/ParameterSource.cs | 2 +- .../Models/SimpleMethodInfo.cs | 2 +- .../Models/TypeInfo.cs | 4 +- .../OutputGenerators/CommonSources.cs | 2 +- .../OutputGenerators/GenericHandlerSources.cs | 8 +- .../LambdaHostOutputGenerator.cs | 4 +- .../OutputGenerators/MapHandlerSources.cs | 8 +- .../OutputGenerators/OpenTelemetrySources.cs | 6 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/launchSettings.json | 0 .../README.md | 0 .../Extractors/HandlerInfoExtractor.cs | 22 +++--- ...daApplicationBuilderBuildSyntaxProvider.cs | 4 +- .../MapHandlerSyntaxProvider.cs | 4 +- .../SyntaxProviders/OnInitSyntaxProvider.cs | 4 +- .../OnShutdownSyntaxProvider.cs | 4 +- .../UseOpenTelemetryTracingSyntaxProvider.cs | 7 +- .../Types/EquatableArray.cs | 2 +- .../Types/EquatableArrayExtensions.cs | 2 +- .../Types/HashCode.cs | 2 +- .../AlbRequestEnvelopeTests.cs | 4 +- .../AlbResponseEnvelopeTests.cs | 4 +- .../ApiGatewayRequestEnvelopeTests.cs | 4 +- .../ApiGatewayResponseEnvelopeTests.cs | 4 +- .../ApiGatewayV2RequestEnvelopeTests.cs | 4 +- .../ApiGatewayV2ResponseEnvelopeTests.cs | 4 +- .../CloudWatchLogsEnvelopeTests.cs | 4 +- .../KafkaEnvelopeTests.cs | 2 +- .../KinesisEnvelopeTests.cs | 4 +- .../KinesisFirehoseEventEnvelopeTests.cs | 4 +- .../KinesisFirehoseResponseEnvelopeTests.cs | 4 +- .../MinimalLambda.Envelopes.UnitTests.csproj} | 16 ++-- .../SnsEnvelopeTests.cs | 4 +- .../SqsEnvelopeTests.cs | 4 +- .../SqsSnsEnvelopeTests.cs | 6 +- .../AutoNSubstituteDataAttribute.cs | 0 .../GlobalUsings.cs | 0 ...TelemetryServiceProviderExtensionsTests.cs | 2 +- .../MiddlewareOpenTelemetryExtensionsTest.cs | 2 +- ...imalLambda.OpenTelemetry.UnitTests.csproj} | 4 +- .../OnShutdownOpenTelemetryExtensionsTests.cs | 30 ++++---- .../DiagnosticTests.cs | 2 +- .../GeneratorTestHelpers.cs | 7 +- ...lLambda.SourceGenerators.UnitTests.csproj} | 8 +- .../ModuleInitializer.cs | 2 +- ...llInputSources#LambdaHandler.g.verified.cs | 22 +++--- ...tring_TypeCast#LambdaHandler.g.verified.cs | 20 ++--- ...eturn_TypeCast#LambdaHandler.g.verified.cs | 22 +++--- ...eInfo_TypeCast#LambdaHandler.g.verified.cs | 22 +++--- ...rnExplicitType#LambdaHandler.g.verified.cs | 24 +++--- ...plicitNullable#LambdaHandler.g.verified.cs | 24 +++--- ...a_ReturnString#LambdaHandler.g.verified.cs | 24 +++--- ...turnTaskString#LambdaHandler.g.verified.cs | 20 ++--- ...sTask_TypeCast#LambdaHandler.g.verified.cs | 18 ++--- ...StreamResponse#LambdaHandler.g.verified.cs | 20 ++--- ...ambda_TypeCast#LambdaHandler.g.verified.cs | 22 +++--- ...mKeyedServices#LambdaHandler.g.verified.cs | 22 +++--- ...cellationToken#LambdaHandler.g.verified.cs | 22 +++--- ...dLambdaContext#LambdaHandler.g.verified.cs | 22 +++--- ...bdaHostContext#LambdaHandler.g.verified.cs | 24 +++--- ...rnExplicitTask#LambdaHandler.g.verified.cs | 18 ++--- ..._ComplexOutput#LambdaHandler.g.verified.cs | 22 +++--- ...a_ExplicitVoid#LambdaHandler.g.verified.cs | 20 ++--- ..._InputDi_Async#LambdaHandler.g.verified.cs | 22 +++--- ..._AsyncAndAwait#LambdaHandler.g.verified.cs | 22 +++--- ...erentNamespace#LambdaHandler.g.verified.cs | 22 +++--- ...da_InputStream#LambdaHandler.g.verified.cs | 20 ++--- ...erializer_NoOp#LambdaHandler.g.verified.cs | 4 +- ...nOverload_NoOp#LambdaHandler.g.verified.cs | 4 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 20 ++--- ...nGenericObject#LambdaHandler.g.verified.cs | 22 +++--- ...lablePrimitive#LambdaHandler.g.verified.cs | 22 +++--- ...t_ReturnString#LambdaHandler.g.verified.cs | 22 +++--- ...plicitNullable#LambdaHandler.g.verified.cs | 24 +++--- ...plicitNullable#LambdaHandler.g.verified.cs | 24 +++--- ...rnExplicitTask#LambdaHandler.g.verified.cs | 18 ++--- ...rnExplicitType#LambdaHandler.g.verified.cs | 24 +++--- ...tingPointTypes#LambdaHandler.g.verified.cs | 20 ++--- ...IntAndLongKeys#LambdaHandler.g.verified.cs | 20 ++--- ...ice_OtherTypes#LambdaHandler.g.verified.cs | 20 ++--- ...llIntegerTypes#LambdaHandler.g.verified.cs | 20 ++--- ...ingAndEnumKeys#LambdaHandler.g.verified.cs | 20 ++--- ...edIntegerTypes#LambdaHandler.g.verified.cs | 20 ++--- ...dler_AsyncVoid#LambdaHandler.g.verified.cs | 20 ++--- ...turnTaskString#LambdaHandler.g.verified.cs | 20 ++--- ...iKeyedServices#LambdaHandler.g.verified.cs | 24 +++--- ...kBody_TypeCast#LambdaHandler.g.verified.cs | 22 +++--- ...ypeCast_Static#LambdaHandler.g.verified.cs | 22 +++--- ...Input_NoOutput#LambdaHandler.g.verified.cs | 20 ++--- ...ler_ReturnTask#LambdaHandler.g.verified.cs | 18 ++--- ...turnTaskString#LambdaHandler.g.verified.cs | 20 ++--- ...traParentheses#LambdaHandler.g.verified.cs | 22 +++--- ...BaseMethodCall#LambdaHandler.g.verified.cs | 4 +- ...eturnTypeAsync#LambdaHandler.g.verified.cs | 16 ++-- ...ler_AsyncAndDi#LambdaHandler.g.verified.cs | 16 ++-- ...UnexpectedType#LambdaHandler.g.verified.cs | 16 ++-- ...odHandler_NoDi#LambdaHandler.g.verified.cs | 16 ++-- ..._MultipleCalls#LambdaHandler.g.verified.cs | 28 +++---- ...OnInit_NoInput#LambdaHandler.g.verified.cs | 0 ...Input_NoOutput#LambdaHandler.g.verified.cs | 16 ++-- ...eturnAsyncBool#LambdaHandler.g.verified.cs | 16 ++-- ...put_ReturnBool#LambdaHandler.g.verified.cs | 16 ++-- ...otExpectedType#LambdaHandler.g.verified.cs | 16 ++-- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 16 ++-- ...pectedTypeTask#LambdaHandler.g.verified.cs | 16 ++-- ...ReturnTaskBool#LambdaHandler.g.verified.cs | 16 ++-- ...eferenceInputs#LambdaHandler.g.verified.cs | 16 ++-- ...bleKindOfInput#LambdaHandler.g.verified.cs | 16 ++-- ...PrimitiveInput#LambdaHandler.g.verified.cs | 16 ++-- ...BaseMethodCall#LambdaHandler.g.verified.cs | 4 +- ...nsImplicitVoid#LambdaHandler.g.verified.cs | 16 ++-- ..._MultipleCalls#LambdaHandler.g.verified.cs | 28 +++---- ...utdown_NoInput#LambdaHandler.g.verified.cs | 16 ++-- ...UnexpectedType#LambdaHandler.g.verified.cs | 16 ++-- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 16 ++-- ...pectedTypeTask#LambdaHandler.g.verified.cs | 16 ++-- ...eferenceInputs#LambdaHandler.g.verified.cs | 16 ++-- ...bleKindOfInput#LambdaHandler.g.verified.cs | 16 ++-- ...PrimitiveInput#LambdaHandler.g.verified.cs | 16 ++-- .../Types/EquatableArrayTests.cs | 3 +- .../Types/HashCodeTests.cs | 4 +- .../VerifyTests/BlockLambdaVerifyTests.cs | 2 +- .../ExpressionLambdaVerifyTests.cs | 2 +- .../VerifyTests/KeyedServiceVerifyTests.cs | 2 +- .../VerifyTests/OnInitVerifyTests.cs | 2 +- .../VerifyTests/OnShutdownVerifyTests.cs | 2 +- .../VerifyTests/StaticMethodVerifyTests.cs | 2 +- .../AutoNSubstituteDataAttribute.cs | 2 +- ...aultLambdaInvocationBuilderFactoryTests.cs | 2 +- .../DefaultLambdaOnInitBuilderFactoryTests.cs | 5 +- ...aultLambdaOnShutdownBuilderFactoryTests.cs | 2 +- ...urationServiceCollectionExtensionsTests.cs | 2 +- ...pClientServiceCollectionExtensionsTests.cs | 4 +- ...dlewareLambdaApplicationExtensionsTests.cs | 3 +- ...ializerServiceCollectionExtensionsTests.cs | 2 +- .../ServiceCollectionExtensionsTests.cs | 2 +- .../Builder/LambdaApplicationBuilderTests.cs | 3 +- .../Builder/LambdaApplicationTests.cs | 3 +- .../Builder/LambdaInvocationBuilderTests.cs | 4 +- .../Builder/LambdaOnInitBuilderTests.cs | 33 +++----- .../Builder/LambdaOnShutdownBuilderTests.cs | 3 +- ...mattingLambdaApplicationExtensionsTests.cs | 2 +- .../DefaultLambdaCancellationFactoryTests.cs | 20 ++--- .../Context/DefaultLambdaHostContextTests.cs | 2 +- .../Context/LambdaHostContextAccessorTests.cs | 2 +- .../Context/LambdaHostContextFactoryTests.cs | 2 +- .../DefaultEventFeatureProviderTests.cs | 2 +- .../Core/Features/DefaultEventFeatureTests.cs | 2 +- .../DefaultFeatureCollectionFactoryTests.cs | 2 +- .../Features/DefaultFeatureCollectionTests.cs | 2 +- .../DefaultResponseFeatureProviderTests.cs | 2 +- .../Features/DefaultResponseFeatureTests.cs | 2 +- .../EventFeatureProviderFactoryTest.cs | 2 +- .../FeatureCollectionExtensionsTests.cs | 2 +- ...FeatureLambdaHostContextExtensionsTests.cs | 2 +- .../InvocationDataFeatureFactoryTests.cs | 2 +- .../ResponseFeatureProviderFactoryTest.cs | 2 +- .../HostOptionsPostConfigurationTests.cs | 2 +- .../Runtime/LambdaBootstrapAdapterTests.cs | 2 +- .../Runtime/LambdaHandlerComposerTests.cs | 3 +- .../Core/Runtime/LambdaHostedServiceTests.cs | 2 +- .../GlobalUsings.cs | 8 +- .../MinimalLambda.UnitTests.csproj} | 2 +- 353 files changed, 1092 insertions(+), 1291 deletions(-) rename benchmarks/{AwsLambda.Host.Benchmarks => MinimalLambda.Benchmarks}/BenchmarkConfig.cs (68%) rename benchmarks/{AwsLambda.Host.Benchmarks => MinimalLambda.Benchmarks}/Benchmarks.cs (73%) rename benchmarks/{AwsLambda.Host.Benchmarks/AwsLambda.Host.Benchmarks.csproj => MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj} (88%) rename benchmarks/{AwsLambda.Host.Benchmarks => MinimalLambda.Benchmarks}/Program.cs (89%) rename examples/{AwsLambda.Host.Example.Events/AwsLambda.Host.Example.Events.csproj => MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj} (70%) rename examples/{AwsLambda.Host.Example.Events => MinimalLambda.Example.Events}/Program.cs (95%) rename examples/{AwsLambda.Host.Example.Events => MinimalLambda.Example.Events}/Properties/launchSettings.json (100%) rename examples/{AwsLambda.Host.Example.Events => MinimalLambda.Example.Events}/appsettings.json (100%) rename examples/{AwsLambda.Host.Example.HelloWorld/AwsLambda.Host.Example.HelloWorld.csproj => MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj} (79%) rename examples/{AwsLambda.Host.Example.HelloWorld => MinimalLambda.Example.HelloWorld}/Program.cs (93%) rename examples/{AwsLambda.Host.Example.HelloWorld => MinimalLambda.Example.HelloWorld}/Properties/launchSettings.json (100%) rename examples/{AwsLambda.Host.Example.HelloWorld => MinimalLambda.Example.HelloWorld}/appsettings.json (100%) rename examples/{AwsLambda.Host.Example.HelloWorldAot/AwsLambda.Host.Example.HelloWorldAot.csproj => MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj} (90%) rename examples/{AwsLambda.Host.Example.HelloWorldAot => MinimalLambda.Example.HelloWorldAot}/Program.cs (96%) rename examples/{AwsLambda.Host.Example.HelloWorldAot => MinimalLambda.Example.HelloWorldAot}/Properties/launchSettings.json (100%) rename examples/{AwsLambda.Host.Example.Lifecycle/AwsLambda.Host.Example.Lifecycle.csproj => MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj} (86%) rename examples/{AwsLambda.Host.Example.Lifecycle => MinimalLambda.Example.Lifecycle}/Program.cs (98%) rename examples/{AwsLambda.Host.Example.Lifecycle => MinimalLambda.Example.Lifecycle}/Properties/launchSettings.json (100%) rename examples/{AwsLambda.Host.Example.Lifecycle => MinimalLambda.Example.Lifecycle}/appsettings.json (100%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/Function.cs (85%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/IService.cs (71%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/Instrumentation.cs (92%) rename examples/{AwsLambda.Host.Example.OpenTelemetry/AwsLambda.Host.Example.OpenTelemetry.csproj => MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj} (78%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/Models.cs (68%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/NameMetrics.cs (90%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/OpenTelemetryRegistrationExtensions.cs (97%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/Program.cs (71%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/Properties/launchSettings.json (100%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/README.md (100%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/Service.cs (91%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/docker-compose.yml (100%) rename examples/{AwsLambda.Host.Example.OpenTelemetry => MinimalLambda.Example.OpenTelemetry}/events/SavedRequests/__DefaultFunction__/Lambda.Host.Example.OpenTelemetry Event.json (100%) delete mode 100644 src/AwsLambda.Host.SourceGenerators/TemplateHelper.cs delete mode 100644 src/AwsLambda.Host.SourceGenerators/Templates/GenericHandler.scriban delete mode 100644 src/AwsLambda.Host.SourceGenerators/Templates/InterceptsLocationAttribute.scriban delete mode 100644 src/AwsLambda.Host.SourceGenerators/Templates/MapHandler.scriban delete mode 100644 src/AwsLambda.Host/GlobalUsings.cs rename src/Envelopes/{AwsLambda.Host.Envelopes.Alb => MinimalLambda.Envelopes.Alb}/AlbRequestEnvelope.cs (90%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Alb => MinimalLambda.Envelopes.Alb}/AlbRequestEnvelopeBase.cs (93%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Alb => MinimalLambda.Envelopes.Alb}/AlbResponseEnvelope.cs (90%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Alb => MinimalLambda.Envelopes.Alb}/AlbResponseEnvelopeBase.cs (93%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Alb/AwsLambda.Host.Envelopes.Alb.csproj => MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj} (84%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Alb => MinimalLambda.Envelopes.Alb}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayRequestEnvelope.cs (90%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayRequestEnvelopeBase.cs (92%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayResponseEnvelope.cs (90%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayResponseEnvelopeBase.cs (92%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayV2RequestEnvelope.cs (90%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayV2RequestEnvelopeBase.cs (92%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayV2ResponseEnvelope.cs (90%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/ApiGatewayV2ResponseEnvelopeBase.cs (92%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway/AwsLambda.Host.Envelopes.ApiGateway.csproj => MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj} (83%) rename src/Envelopes/{AwsLambda.Host.Envelopes.ApiGateway => MinimalLambda.Envelopes.ApiGateway}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.CloudWatchLogs => MinimalLambda.Envelopes.CloudWatchLogs}/CloudWatchLogsEnvelope.cs (95%) rename src/Envelopes/{AwsLambda.Host.Envelopes.CloudWatchLogs => MinimalLambda.Envelopes.CloudWatchLogs}/CloudWatchLogsEnvelopeBase.cs (97%) rename src/Envelopes/{AwsLambda.Host.Envelopes.CloudWatchLogs => MinimalLambda.Envelopes.CloudWatchLogs}/CloudWatchLogsEnvelopeT.cs (94%) rename src/Envelopes/{AwsLambda.Host.Envelopes.CloudWatchLogs/AwsLambda.Host.Envelopes.CloudWatchLogs.csproj => MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj} (83%) rename src/Envelopes/{AwsLambda.Host.Envelopes.CloudWatchLogs => MinimalLambda.Envelopes.CloudWatchLogs}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.CloudWatchLogs => MinimalLambda.Envelopes.CloudWatchLogs}/SAMPLE_EVENTS.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kafka => MinimalLambda.Envelopes.Kafka}/KafkaEnvelope.cs (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kafka => MinimalLambda.Envelopes.Kafka}/KafkaEnvelopeBase.cs (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kafka/AwsLambda.Host.Envelopes.Kafka.csproj => MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj} (79%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kafka => MinimalLambda.Envelopes.Kafka}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kinesis => MinimalLambda.Envelopes.Kinesis}/KinesisEnvelope.cs (93%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kinesis => MinimalLambda.Envelopes.Kinesis}/KinesisEnvelopeBase.cs (95%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kinesis/AwsLambda.Host.Envelopes.Kinesis.csproj => MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj} (83%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Kinesis => MinimalLambda.Envelopes.Kinesis}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.KinesisFirehose => MinimalLambda.Envelopes.KinesisFirehose}/KinesisFirehoseEventEnvelope.cs (91%) rename src/Envelopes/{AwsLambda.Host.Envelopes.KinesisFirehose => MinimalLambda.Envelopes.KinesisFirehose}/KinesisFirehoseEventEnvelopeBase.cs (93%) rename src/Envelopes/{AwsLambda.Host.Envelopes.KinesisFirehose => MinimalLambda.Envelopes.KinesisFirehose}/KinesisFirehoseResponseEnvelope.cs (91%) rename src/Envelopes/{AwsLambda.Host.Envelopes.KinesisFirehose => MinimalLambda.Envelopes.KinesisFirehose}/KinesisFirehoseResponseEnvelopeBase.cs (94%) rename src/Envelopes/{AwsLambda.Host.Envelopes.KinesisFirehose/AwsLambda.Host.Envelopes.KinesisFirehose.csproj => MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj} (83%) rename src/Envelopes/{AwsLambda.Host.Envelopes.KinesisFirehose => MinimalLambda.Envelopes.KinesisFirehose}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sns/AwsLambda.Host.Envelopes.Sns.csproj => MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj} (84%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sns => MinimalLambda.Envelopes.Sns}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sns => MinimalLambda.Envelopes.Sns}/SnsEnvelope.cs (92%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sns => MinimalLambda.Envelopes.Sns}/SnsEnvelopeBase.cs (94%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sqs/AwsLambda.Host.Envelopes.Sqs.csproj => MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj} (76%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sqs => MinimalLambda.Envelopes.Sqs}/README.md (100%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sqs => MinimalLambda.Envelopes.Sqs}/SqsEnvelope.cs (91%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sqs => MinimalLambda.Envelopes.Sqs}/SqsEnvelopeBase.cs (93%) rename src/Envelopes/{AwsLambda.Host.Envelopes.Sqs => MinimalLambda.Envelopes.Sqs}/SqsSnsEnvelope.cs (95%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Builders/ILambdaInvocationBuilder.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Builders/ILambdaOnInitBuilder.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Builders/ILambdaOnShutdownBuilder.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Core/ILambdaCancellationFactory.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Core/ILambdaHostContext.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Core/ILambdaHostContextAccessor.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Delegates/LambdaInitDelegate.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Delegates/LambdaInvocationDelegate.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Delegates/LambdaShutdownDelegate.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Envelopes/IRequestEnvelope.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Envelopes/IResponseEnvelope.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IEventFeature.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IEventFeatureProviderFactory.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IEventFeatureT.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IFeatureCollection.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IFeatureProvider.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IInvocationDataFeature.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IResponseFeature.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IResponseFeatureProviderFactory.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Features/IResponseFeatureT.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/GlobalUsings.cs (100%) rename src/{AwsLambda.Host.Abstractions/AwsLambda.Host.Abstractions.csproj => MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj} (93%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/Options/EnvelopeOptions.cs (100%) rename src/{AwsLambda.Host.Abstractions => MinimalLambda.Abstractions}/README.md (100%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/DefaultLambdaInvocationBuilderFactory.cs (85%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/DefaultLambdaOnInitBuilderFactory.cs (91%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/DefaultLambdaOnShutdownBuilderFactory.cs (90%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/EventAttribute.cs (97%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Extensions/BuilderLambdaApplicationExtensions.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs (100%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Extensions/SerializerServiceCollectionExtensions.cs (100%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Extensions/ServiceCollectionExtensions.cs (100%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/ILambdaInvocationBuilderFactory.cs (72%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/ILambdaOnInitBuilderFactory.cs (71%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/ILambdaOnShutdownBuilderFactory.cs (72%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/LambdaApplication.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/LambdaApplicationBuilder.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/LambdaInvocationBuilder.cs (97%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/LambdaOnInitBuilder.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/LambdaOnShutdownBuilder.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/Middleware/RequestEnvelopeMiddleware.cs (96%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs (95%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Cancellation/DefaultLambdaCancellationFactory.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Context/DefaultLambdaHostContext.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Context/ILambdaHostContextFactory.cs (87%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Context/LambdaHostContextAccessor.cs (96%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Context/LambdaHostContextFactory.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/DefaultEventFeature.cs (96%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/DefaultEventFeatureProvider.cs (95%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/DefaultFeatureCollection.cs (97%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/DefaultFeatureCollectionFactory.cs (89%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/DefaultResponseFeature.cs (97%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/DefaultResponseFeatureProvider.cs (95%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/EventFeatureProviderFactory.cs (87%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/FeatureCollectionExtensions.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/FeatureLambdaHostContextExtensions.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/IFeatureCollectionFactory.cs (78%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/IInvocationDataFeatureFactory.cs (75%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/InvocationDataFeature.cs (92%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/InvocationDataFeatureFactory.cs (85%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Features/ResponseFeatureProviderFactory.cs (87%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Options/EnvelopeOptionsPostConfiguration.cs (88%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Options/HostOptionsPostConfiguration.cs (95%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Options/LambdaApplicationOptions.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Options/LambdaHostOptions.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Options/LambdaHostedServiceOptions.cs (88%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Core/Options/ShutdownDuration.cs (96%) create mode 100644 src/MinimalLambda.Core/GlobalUsings.cs rename src/{AwsLambda.Host/AwsLambda.Host.csproj => MinimalLambda.Core/MinimalLambda.Core.csproj} (86%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Properties/AssemblyInfo.cs (62%) rename src/{AwsLambda.Host => MinimalLambda.Core}/README.md (100%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Runtime/ILambdaBootstrapOrchestrator.cs (97%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Runtime/ILambdaHandlerFactory.cs (95%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Runtime/LambdaBootstrapAdapter.cs (98%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Runtime/LambdaHandlerComposer.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/Runtime/LambdaHostedService.cs (99%) rename src/{AwsLambda.Host => MinimalLambda.Core}/build/AwsLambda.Host.targets (100%) rename src/{AwsLambda.Host.OpenTelemetry => MinimalLambda.OpenTelemetry}/LambdaOpenTelemetryAdapters.cs (100%) rename src/{AwsLambda.Host.OpenTelemetry => MinimalLambda.OpenTelemetry}/MiddlewareOpenTelemetryExtensions.cs (100%) rename src/{AwsLambda.Host.OpenTelemetry/AwsLambda.Host.OpenTelemetry.csproj => MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj} (83%) rename src/{AwsLambda.Host.OpenTelemetry => MinimalLambda.OpenTelemetry}/OnShutdownOpenTelemetryExtensions.cs (98%) rename src/{AwsLambda.Host.OpenTelemetry => MinimalLambda.OpenTelemetry}/README.md (100%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/AnalyzerReleases.Shipped.md (100%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/AnalyzerReleases.Unshipped.md (100%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Diagnostics/DiagnosticGenerator.cs (94%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Diagnostics/Diagnostics.cs (96%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Extensions/DelegateInfoExtensions.cs (93%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Extensions/SyntaxExtensions.cs (94%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Extensions/TypeExtractorExtensions.cs (92%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Extensions/TypeSymbolExtensions.cs (92%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/GeneratorConstants.cs (97%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/MapHandlerIncrementalGenerator.cs (97%) rename src/{AwsLambda.Host.SourceGenerators/AwsLambda.Host.SourceGenerators.csproj => MinimalLambda.SourceGenerators/MinimalLambda.SourceGenerators.csproj} (100%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/ArgumentInfo.cs (60%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/CompilationInfo.cs (80%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/DelegateInfo.cs (91%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/HigherOrderMethodInfo.cs (84%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/InterceptableLocationInfo.cs (89%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/KeyedServiceKeyInfo.cs (96%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/LocationInfo.cs (94%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/ParameterInfo.cs (98%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/ParameterSource.cs (69%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/SimpleMethodInfo.cs (76%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Models/TypeInfo.cs (95%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/OutputGenerators/CommonSources.cs (89%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/OutputGenerators/GenericHandlerSources.cs (97%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/OutputGenerators/LambdaHostOutputGenerator.cs (96%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/OutputGenerators/MapHandlerSources.cs (96%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/OutputGenerators/OpenTelemetrySources.cs (89%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Properties/AssemblyInfo.cs (56%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Properties/launchSettings.json (100%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/README.md (100%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/SyntaxProviders/Extractors/HandlerInfoExtractor.cs (94%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs (95%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/SyntaxProviders/MapHandlerSyntaxProvider.cs (85%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/SyntaxProviders/OnInitSyntaxProvider.cs (92%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/SyntaxProviders/OnShutdownSyntaxProvider.cs (92%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/SyntaxProviders/UseOpenTelemetryTracingSyntaxProvider.cs (92%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Types/EquatableArray.cs (98%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Types/EquatableArrayExtensions.cs (84%) rename src/{AwsLambda.Host.SourceGenerators => MinimalLambda.SourceGenerators}/Types/HashCode.cs (99%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/AlbRequestEnvelopeTests.cs (97%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/AlbResponseEnvelopeTests.cs (97%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/ApiGatewayRequestEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/ApiGatewayResponseEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/ApiGatewayV2RequestEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/ApiGatewayV2ResponseEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/CloudWatchLogsEnvelopeTests.cs (99%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/KafkaEnvelopeTests.cs (99%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/KinesisEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/KinesisFirehoseEventEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/KinesisFirehoseResponseEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests/AwsLambda.Host.Envelopes.UnitTests.csproj => MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj} (53%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/SnsEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/SqsEnvelopeTests.cs (99%) rename tests/{AwsLambda.Host.Envelopes.UnitTests => MinimalLambda.Envelopes.UnitTests}/SqsSnsEnvelopeTests.cs (98%) rename tests/{AwsLambda.Host.OpenTelemetry.UnitTests => MinimalLambda.OpenTelemetry.UnitTests}/AutoNSubstituteDataAttribute.cs (100%) rename tests/{AwsLambda.Host.OpenTelemetry.UnitTests => MinimalLambda.OpenTelemetry.UnitTests}/GlobalUsings.cs (100%) rename tests/{AwsLambda.Host.OpenTelemetry.UnitTests => MinimalLambda.OpenTelemetry.UnitTests}/LambdaOpenTelemetryServiceProviderExtensionsTests.cs (99%) rename tests/{AwsLambda.Host.OpenTelemetry.UnitTests => MinimalLambda.OpenTelemetry.UnitTests}/MiddlewareOpenTelemetryExtensionsTest.cs (98%) rename tests/{AwsLambda.Host.OpenTelemetry.UnitTests/AwsLambda.Host.OpenTelemetry.UnitTests.csproj => MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj} (87%) rename tests/{AwsLambda.Host.OpenTelemetry.UnitTests => MinimalLambda.OpenTelemetry.UnitTests}/OnShutdownOpenTelemetryExtensionsTests.cs (95%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/DiagnosticTests.cs (98%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/GeneratorTestHelpers.cs (96%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests/AwsLambda.Host.SourceGenerators.UnitTests.csproj => MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj} (82%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/ModuleInitializer.cs (76%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs (93%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs (87%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs (88%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs (93%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs (87%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs (88%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs (87%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs (93%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs (87%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs (87%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs (93%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs (100%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs (94%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs (92%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs (93%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs (89%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs (90%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs (94%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs (91%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Types/EquatableArrayTests.cs (99%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/Types/HashCodeTests.cs (99%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/VerifyTests/BlockLambdaVerifyTests.cs (99%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/VerifyTests/ExpressionLambdaVerifyTests.cs (99%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/VerifyTests/KeyedServiceVerifyTests.cs (99%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/VerifyTests/OnInitVerifyTests.cs (99%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/VerifyTests/OnShutdownVerifyTests.cs (99%) rename tests/{AwsLambda.Host.SourceGenerators.UnitTests => MinimalLambda.SourceGenerators.UnitTests}/VerifyTests/StaticMethodVerifyTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/AutoNSubstituteDataAttribute.cs (92%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/DefaultLambdaInvocationBuilderFactoryTests.cs (97%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs (93%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/DefaultLambdaOnShutdownBuilderFactoryTests.cs (98%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/Extensions/ConfigurationServiceCollectionExtensionsTests.cs (98%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs (98%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs (97%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/Extensions/SerializerServiceCollectionExtensionsTests.cs (97%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/Extensions/ServiceCollectionExtensionsTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/LambdaApplicationBuilderTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/LambdaApplicationTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/LambdaInvocationBuilderTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/LambdaOnInitBuilderTests.cs (92%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/LambdaOnShutdownBuilderTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Builder/OnInit/OutputFormattingLambdaApplicationExtensionsTests.cs (97%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs (88%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Context/DefaultLambdaHostContextTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Context/LambdaHostContextAccessorTests.cs (98%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Context/LambdaHostContextFactoryTests.cs (98%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/DefaultEventFeatureProviderTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/DefaultEventFeatureTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/DefaultFeatureCollectionFactoryTests.cs (96%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/DefaultFeatureCollectionTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/DefaultResponseFeatureProviderTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/DefaultResponseFeatureTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/EventFeatureProviderFactoryTest.cs (93%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/FeatureCollectionExtensionsTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/FeatureLambdaHostContextExtensionsTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/InvocationDataFeatureFactoryTests.cs (97%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Features/ResponseFeatureProviderFactoryTest.cs (93%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Options/HostOptionsPostConfigurationTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Runtime/LambdaBootstrapAdapterTests.cs (93%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Runtime/LambdaHandlerComposerTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/Core/Runtime/LambdaHostedServiceTests.cs (99%) rename tests/{AwsLambda.Host.UnitTests => MinimalLambda.UnitTests}/GlobalUsings.cs (56%) rename tests/{AwsLambda.Host.UnitTests/AwsLambda.Host.UnitTests.csproj => MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj} (94%) diff --git a/AwsLambda.Host.sln b/AwsLambda.Host.sln index d0bf4f62..e55bc3e1 100644 --- a/AwsLambda.Host.sln +++ b/AwsLambda.Host.sln @@ -2,11 +2,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{B36A84DF-456D-A817-6EDD-3EC3E7F6E11F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Example.HelloWorldAot", "examples\AwsLambda.Host.Example.HelloWorldAot\AwsLambda.Host.Example.HelloWorldAot.csproj", "{6B8CD8FF-832E-9F88-FB36-2173461F6678}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Example.HelloWorldAot", "examples\MinimalLambda.Example.HelloWorldAot\MinimalLambda.Example.HelloWorldAot.csproj", "{6B8CD8FF-832E-9F88-FB36-2173461F6678}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Example.HelloWorld", "examples\AwsLambda.Host.Example.HelloWorld\AwsLambda.Host.Example.HelloWorld.csproj", "{C055F84D-F8B7-DBCF-8A73-2EA183185033}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Example.HelloWorld", "examples\MinimalLambda.Example.HelloWorld\MinimalLambda.Example.HelloWorld.csproj", "{C055F84D-F8B7-DBCF-8A73-2EA183185033}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Example.Lifecycle", "examples\AwsLambda.Host.Example.Lifecycle\AwsLambda.Host.Example.Lifecycle.csproj", "{0840D364-A48A-99D7-EE47-1CAC4643B29A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Example.Lifecycle", "examples\MinimalLambda.Example.Lifecycle\MinimalLambda.Example.Lifecycle.csproj", "{0840D364-A48A-99D7-EE47-1CAC4643B29A}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{089100B1-113F-4E66-888A-E83F3999EAFD}" ProjectSection(SolutionItems) = preProject @@ -24,55 +24,52 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Abstractions", "src\AwsLambda.Host.Abstractions\AwsLambda.Host.Abstractions.csproj", "{BA42EF68-C2E6-392F-8B5A-37D2EB4A7C06}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Abstractions", "src\MinimalLambda.Abstractions\MinimalLambda.Abstractions.csproj", "{BA42EF68-C2E6-392F-8B5A-37D2EB4A7C06}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.OpenTelemetry", "src\AwsLambda.Host.OpenTelemetry\AwsLambda.Host.OpenTelemetry.csproj", "{6F7F539B-6D80-175E-8200-7B1E64323541}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.OpenTelemetry", "src\MinimalLambda.OpenTelemetry\MinimalLambda.OpenTelemetry.csproj", "{6F7F539B-6D80-175E-8200-7B1E64323541}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.SourceGenerators", "src\AwsLambda.Host.SourceGenerators\AwsLambda.Host.SourceGenerators.csproj", "{2CCDEC5D-5A84-2F11-A2F9-A6AF00F2112D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.SourceGenerators", "src\MinimalLambda.SourceGenerators\MinimalLambda.SourceGenerators.csproj", "{2CCDEC5D-5A84-2F11-A2F9-A6AF00F2112D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host", "src\AwsLambda.Host\AwsLambda.Host.csproj", "{6C9DE6F5-2E44-A1BE-0E21-D39850C45EF3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Core", "src\MinimalLambda.Core\MinimalLambda.Core.csproj", "{6C9DE6F5-2E44-A1BE-0E21-D39850C45EF3}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0AB3BF05-4346-4AA6-1389-037BE0695223}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.SourceGenerators.UnitTests", "tests\AwsLambda.Host.SourceGenerators.UnitTests\AwsLambda.Host.SourceGenerators.UnitTests.csproj", "{00F4BB08-2770-56A6-1F85-B916CA14340E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.SourceGenerators.UnitTests", "tests\MinimalLambda.SourceGenerators.UnitTests\MinimalLambda.SourceGenerators.UnitTests.csproj", "{00F4BB08-2770-56A6-1F85-B916CA14340E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.UnitTests", "tests\AwsLambda.Host.UnitTests\AwsLambda.Host.UnitTests.csproj", "{5A3B3343-1E90-46DB-DD4C-DB87FD583D69}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.UnitTests", "tests\MinimalLambda.UnitTests\MinimalLambda.UnitTests.csproj", "{5A3B3343-1E90-46DB-DD4C-DB87FD583D69}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Example.OpenTelemetry", "examples\AwsLambda.Host.Example.OpenTelemetry\AwsLambda.Host.Example.OpenTelemetry.csproj", "{BA5B805C-0187-4D3D-9F3F-297314F64B5B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Example.OpenTelemetry", "examples\MinimalLambda.Example.OpenTelemetry\MinimalLambda.Example.OpenTelemetry.csproj", "{BA5B805C-0187-4D3D-9F3F-297314F64B5B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Example.Events", "examples\AwsLambda.Host.Example.Events\AwsLambda.Host.Example.Events.csproj", "{BA1CA0FB-A0C8-429B-9709-EDEEA4C187B9}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Example.Events", "examples\MinimalLambda.Example.Events\MinimalLambda.Example.Events.csproj", "{BA1CA0FB-A0C8-429B-9709-EDEEA4C187B9}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Envelopes", "Envelopes", "{1C3C52D9-2936-4A0C-A9C8-F330F22B8359}" ProjectSection(SolutionItems) = preProject src\Envelopes\README.md = src\Envelopes\README.md EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.Sqs", "src\Envelopes\AwsLambda.Host.Envelopes.Sqs\AwsLambda.Host.Envelopes.Sqs.csproj", "{8E3037D3-BEB0-4A0B-A09A-CF31F50D0508}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.Sqs", "src\Envelopes\MinimalLambda.Envelopes.Sqs\MinimalLambda.Envelopes.Sqs.csproj", "{8E3037D3-BEB0-4A0B-A09A-CF31F50D0508}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.ApiGateway", "src\Envelopes\AwsLambda.Host.Envelopes.ApiGateway\AwsLambda.Host.Envelopes.ApiGateway.csproj", "{83E4EBD0-EE1C-422D-A22C-BC6A1895A879}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.ApiGateway", "src\Envelopes\MinimalLambda.Envelopes.ApiGateway\MinimalLambda.Envelopes.ApiGateway.csproj", "{83E4EBD0-EE1C-422D-A22C-BC6A1895A879}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.UnitTests", "tests\AwsLambda.Host.Envelopes.UnitTests\AwsLambda.Host.Envelopes.UnitTests.csproj", "{0BBBEF49-6478-4394-9BD7-B9AFCA280B3D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.UnitTests", "tests\MinimalLambda.Envelopes.UnitTests\MinimalLambda.Envelopes.UnitTests.csproj", "{0BBBEF49-6478-4394-9BD7-B9AFCA280B3D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.OpenTelemetry.UnitTests", "tests\AwsLambda.Host.OpenTelemetry.UnitTests\AwsLambda.Host.OpenTelemetry.UnitTests.csproj", "{B8FD7488-07A9-4CA0-8F40-483ECE109159}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.OpenTelemetry.UnitTests", "tests\MinimalLambda.OpenTelemetry.UnitTests\MinimalLambda.OpenTelemetry.UnitTests.csproj", "{B8FD7488-07A9-4CA0-8F40-483ECE109159}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Benchmarks", "benchmarks\AwsLambda.Host.Benchmarks\AwsLambda.Host.Benchmarks.csproj", "{C3E6B18E-A30A-4844-BB82-209A6CC52205}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Benchmarks", "benchmarks\MinimalLambda.Benchmarks\MinimalLambda.Benchmarks.csproj", "{C3E6B18E-A30A-4844-BB82-209A6CC52205}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{A193E0DE-D617-4E7E-83CA-2A9150E44841}" - ProjectSection(SolutionItems) = preProject - Properties\launchSettings.json = Properties\launchSettings.json - EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.Alb", "src\Envelopes\AwsLambda.Host.Envelopes.Alb\AwsLambda.Host.Envelopes.Alb.csproj", "{DD02E50C-625B-4A91-9BDF-7E3C08DF9E78}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.Alb", "src\Envelopes\MinimalLambda.Envelopes.Alb\MinimalLambda.Envelopes.Alb.csproj", "{DD02E50C-625B-4A91-9BDF-7E3C08DF9E78}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.Sns", "src\Envelopes\AwsLambda.Host.Envelopes.Sns\AwsLambda.Host.Envelopes.Sns.csproj", "{3F7CDB17-2492-4670-930C-E87DD96A7BB9}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.Sns", "src\Envelopes\MinimalLambda.Envelopes.Sns\MinimalLambda.Envelopes.Sns.csproj", "{3F7CDB17-2492-4670-930C-E87DD96A7BB9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.Kinesis", "src\Envelopes\AwsLambda.Host.Envelopes.Kinesis\AwsLambda.Host.Envelopes.Kinesis.csproj", "{4A29DBDB-F707-419D-9024-B0B509A415DD}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.Kinesis", "src\Envelopes\MinimalLambda.Envelopes.Kinesis\MinimalLambda.Envelopes.Kinesis.csproj", "{4A29DBDB-F707-419D-9024-B0B509A415DD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.KinesisFirehose", "src\Envelopes\AwsLambda.Host.Envelopes.KinesisFirehose\AwsLambda.Host.Envelopes.KinesisFirehose.csproj", "{71EB7C3D-6EFE-4189-BE50-DC7C83D666F5}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.KinesisFirehose", "src\Envelopes\MinimalLambda.Envelopes.KinesisFirehose\MinimalLambda.Envelopes.KinesisFirehose.csproj", "{71EB7C3D-6EFE-4189-BE50-DC7C83D666F5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.Kafka", "src\Envelopes\AwsLambda.Host.Envelopes.Kafka\AwsLambda.Host.Envelopes.Kafka.csproj", "{DA647025-1B7B-425A-9405-8E015F6DA723}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.Kafka", "src\Envelopes\MinimalLambda.Envelopes.Kafka\MinimalLambda.Envelopes.Kafka.csproj", "{DA647025-1B7B-425A-9405-8E015F6DA723}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwsLambda.Host.Envelopes.CloudWatchLogs", "src\Envelopes\AwsLambda.Host.Envelopes.CloudWatchLogs\AwsLambda.Host.Envelopes.CloudWatchLogs.csproj", "{6D40345B-6CCF-4A6C-8FA2-5BE6C693E3F7}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Envelopes.CloudWatchLogs", "src\Envelopes\MinimalLambda.Envelopes.CloudWatchLogs\MinimalLambda.Envelopes.CloudWatchLogs.csproj", "{6D40345B-6CCF-4A6C-8FA2-5BE6C693E3F7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/benchmarks/AwsLambda.Host.Benchmarks/BenchmarkConfig.cs b/benchmarks/MinimalLambda.Benchmarks/BenchmarkConfig.cs similarity index 68% rename from benchmarks/AwsLambda.Host.Benchmarks/BenchmarkConfig.cs rename to benchmarks/MinimalLambda.Benchmarks/BenchmarkConfig.cs index 3aa45875..f5cc32a4 100644 --- a/benchmarks/AwsLambda.Host.Benchmarks/BenchmarkConfig.cs +++ b/benchmarks/MinimalLambda.Benchmarks/BenchmarkConfig.cs @@ -1,5 +1,5 @@ using BenchmarkDotNet.Configs; -namespace AwsLambda.Host.Benchmarks; +namespace MinimalLambda.Benchmarks; public class BenchmarkConfig : ManualConfig { } diff --git a/benchmarks/AwsLambda.Host.Benchmarks/Benchmarks.cs b/benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs similarity index 73% rename from benchmarks/AwsLambda.Host.Benchmarks/Benchmarks.cs rename to benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs index ab5134f1..584029ca 100644 --- a/benchmarks/AwsLambda.Host.Benchmarks/Benchmarks.cs +++ b/benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs @@ -1,7 +1,7 @@ -ο»Ώusing AwsLambda.Host.Builder; -using BenchmarkDotNet.Attributes; +ο»Ώusing BenchmarkDotNet.Attributes; +using MinimalLambda.Host.Builder; -namespace AwsLambda.Host.Benchmarks; +namespace MinimalLambda.Benchmarks; public class CreateBuilderBenchmarks { diff --git a/benchmarks/AwsLambda.Host.Benchmarks/AwsLambda.Host.Benchmarks.csproj b/benchmarks/MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj similarity index 88% rename from benchmarks/AwsLambda.Host.Benchmarks/AwsLambda.Host.Benchmarks.csproj rename to benchmarks/MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj index a78e2993..85e533b8 100644 --- a/benchmarks/AwsLambda.Host.Benchmarks/AwsLambda.Host.Benchmarks.csproj +++ b/benchmarks/MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj @@ -19,6 +19,6 @@ - + diff --git a/benchmarks/AwsLambda.Host.Benchmarks/Program.cs b/benchmarks/MinimalLambda.Benchmarks/Program.cs similarity index 89% rename from benchmarks/AwsLambda.Host.Benchmarks/Program.cs rename to benchmarks/MinimalLambda.Benchmarks/Program.cs index 02f46aca..b1a834ae 100644 --- a/benchmarks/AwsLambda.Host.Benchmarks/Program.cs +++ b/benchmarks/MinimalLambda.Benchmarks/Program.cs @@ -1,4 +1,3 @@ -using AwsLambda.Host.Benchmarks; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Running; diff --git a/examples/AwsLambda.Host.Example.Events/AwsLambda.Host.Example.Events.csproj b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj similarity index 70% rename from examples/AwsLambda.Host.Example.Events/AwsLambda.Host.Example.Events.csproj rename to examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj index e89e871f..61ac08cf 100644 --- a/examples/AwsLambda.Host.Example.Events/AwsLambda.Host.Example.Events.csproj +++ b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj @@ -17,15 +17,15 @@ false - + - - - + + + diff --git a/examples/AwsLambda.Host.Example.Events/Program.cs b/examples/MinimalLambda.Example.Events/Program.cs similarity index 95% rename from examples/AwsLambda.Host.Example.Events/Program.cs rename to examples/MinimalLambda.Example.Events/Program.cs index 864d70e6..e71aa952 100644 --- a/examples/AwsLambda.Host.Example.Events/Program.cs +++ b/examples/MinimalLambda.Example.Events/Program.cs @@ -2,11 +2,10 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.ApiGateway; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; +using MinimalLambda.Host.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/AwsLambda.Host.Example.Events/Properties/launchSettings.json b/examples/MinimalLambda.Example.Events/Properties/launchSettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.Events/Properties/launchSettings.json rename to examples/MinimalLambda.Example.Events/Properties/launchSettings.json diff --git a/examples/AwsLambda.Host.Example.Events/appsettings.json b/examples/MinimalLambda.Example.Events/appsettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.Events/appsettings.json rename to examples/MinimalLambda.Example.Events/appsettings.json diff --git a/examples/AwsLambda.Host.Example.HelloWorld/AwsLambda.Host.Example.HelloWorld.csproj b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj similarity index 79% rename from examples/AwsLambda.Host.Example.HelloWorld/AwsLambda.Host.Example.HelloWorld.csproj rename to examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj index 8ad8e03f..315a1c6a 100644 --- a/examples/AwsLambda.Host.Example.HelloWorld/AwsLambda.Host.Example.HelloWorld.csproj +++ b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj @@ -17,13 +17,13 @@ - + - + diff --git a/examples/AwsLambda.Host.Example.HelloWorld/Program.cs b/examples/MinimalLambda.Example.HelloWorld/Program.cs similarity index 93% rename from examples/AwsLambda.Host.Example.HelloWorld/Program.cs rename to examples/MinimalLambda.Example.HelloWorld/Program.cs index 7a1a8799..91766b91 100644 --- a/examples/AwsLambda.Host.Example.HelloWorld/Program.cs +++ b/examples/MinimalLambda.Example.HelloWorld/Program.cs @@ -1,6 +1,6 @@ ο»Ώusing System; -using AwsLambda.Host.Builder; using Microsoft.Extensions.Hosting; +using MinimalLambda.Host.Builder; // Create the application builder var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/AwsLambda.Host.Example.HelloWorld/Properties/launchSettings.json b/examples/MinimalLambda.Example.HelloWorld/Properties/launchSettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.HelloWorld/Properties/launchSettings.json rename to examples/MinimalLambda.Example.HelloWorld/Properties/launchSettings.json diff --git a/examples/AwsLambda.Host.Example.HelloWorld/appsettings.json b/examples/MinimalLambda.Example.HelloWorld/appsettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.HelloWorld/appsettings.json rename to examples/MinimalLambda.Example.HelloWorld/appsettings.json diff --git a/examples/AwsLambda.Host.Example.HelloWorldAot/AwsLambda.Host.Example.HelloWorldAot.csproj b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj similarity index 90% rename from examples/AwsLambda.Host.Example.HelloWorldAot/AwsLambda.Host.Example.HelloWorldAot.csproj rename to examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj index 857237e9..20e14cab 100644 --- a/examples/AwsLambda.Host.Example.HelloWorldAot/AwsLambda.Host.Example.HelloWorldAot.csproj +++ b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj @@ -24,9 +24,9 @@ false - + diff --git a/examples/AwsLambda.Host.Example.HelloWorldAot/Program.cs b/examples/MinimalLambda.Example.HelloWorldAot/Program.cs similarity index 96% rename from examples/AwsLambda.Host.Example.HelloWorldAot/Program.cs rename to examples/MinimalLambda.Example.HelloWorldAot/Program.cs index 2c9ce762..1c6f170b 100644 --- a/examples/AwsLambda.Host.Example.HelloWorldAot/Program.cs +++ b/examples/MinimalLambda.Example.HelloWorldAot/Program.cs @@ -1,8 +1,8 @@ ο»Ώusing System; using System.Text.Json.Serialization; -using AwsLambda.Host.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using MinimalLambda.Host.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/AwsLambda.Host.Example.HelloWorldAot/Properties/launchSettings.json b/examples/MinimalLambda.Example.HelloWorldAot/Properties/launchSettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.HelloWorldAot/Properties/launchSettings.json rename to examples/MinimalLambda.Example.HelloWorldAot/Properties/launchSettings.json diff --git a/examples/AwsLambda.Host.Example.Lifecycle/AwsLambda.Host.Example.Lifecycle.csproj b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj similarity index 86% rename from examples/AwsLambda.Host.Example.Lifecycle/AwsLambda.Host.Example.Lifecycle.csproj rename to examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj index cc06c656..2f719cca 100644 --- a/examples/AwsLambda.Host.Example.Lifecycle/AwsLambda.Host.Example.Lifecycle.csproj +++ b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj @@ -15,9 +15,9 @@ false - + diff --git a/examples/AwsLambda.Host.Example.Lifecycle/Program.cs b/examples/MinimalLambda.Example.Lifecycle/Program.cs similarity index 98% rename from examples/AwsLambda.Host.Example.Lifecycle/Program.cs rename to examples/MinimalLambda.Example.Lifecycle/Program.cs index f1981538..8fe41e13 100644 --- a/examples/AwsLambda.Host.Example.Lifecycle/Program.cs +++ b/examples/MinimalLambda.Example.Lifecycle/Program.cs @@ -2,9 +2,9 @@ using System.Diagnostics; using System.Threading; using System.Threading.Tasks; -using AwsLambda.Host.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using MinimalLambda.Host.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/AwsLambda.Host.Example.Lifecycle/Properties/launchSettings.json b/examples/MinimalLambda.Example.Lifecycle/Properties/launchSettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.Lifecycle/Properties/launchSettings.json rename to examples/MinimalLambda.Example.Lifecycle/Properties/launchSettings.json diff --git a/examples/AwsLambda.Host.Example.Lifecycle/appsettings.json b/examples/MinimalLambda.Example.Lifecycle/appsettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.Lifecycle/appsettings.json rename to examples/MinimalLambda.Example.Lifecycle/appsettings.json diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/Function.cs b/examples/MinimalLambda.Example.OpenTelemetry/Function.cs similarity index 85% rename from examples/AwsLambda.Host.Example.OpenTelemetry/Function.cs rename to examples/MinimalLambda.Example.OpenTelemetry/Function.cs index 582de454..481f3f67 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/Function.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Function.cs @@ -1,6 +1,6 @@ -using AwsLambda.Host.Builder; +using MinimalLambda.Host.Builder; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; internal static class Function { diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/IService.cs b/examples/MinimalLambda.Example.OpenTelemetry/IService.cs similarity index 71% rename from examples/AwsLambda.Host.Example.OpenTelemetry/IService.cs rename to examples/MinimalLambda.Example.OpenTelemetry/IService.cs index 21c6ea54..a32dede0 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/IService.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/IService.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; internal interface IService { diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/Instrumentation.cs b/examples/MinimalLambda.Example.OpenTelemetry/Instrumentation.cs similarity index 92% rename from examples/AwsLambda.Host.Example.OpenTelemetry/Instrumentation.cs rename to examples/MinimalLambda.Example.OpenTelemetry/Instrumentation.cs index 472e1a55..f314777f 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/Instrumentation.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Instrumentation.cs @@ -1,6 +1,6 @@ using System.Diagnostics; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; /// /// It is recommended to use a custom type to hold references for ActivitySource. This avoids diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/AwsLambda.Host.Example.OpenTelemetry.csproj b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj similarity index 78% rename from examples/AwsLambda.Host.Example.OpenTelemetry/AwsLambda.Host.Example.OpenTelemetry.csproj rename to examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj index 2c5971f7..8873dfe3 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/AwsLambda.Host.Example.OpenTelemetry.csproj +++ b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj @@ -16,14 +16,14 @@ false - - + + - + diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/Models.cs b/examples/MinimalLambda.Example.OpenTelemetry/Models.cs similarity index 68% rename from examples/AwsLambda.Host.Example.OpenTelemetry/Models.cs rename to examples/MinimalLambda.Example.OpenTelemetry/Models.cs index 1e277d20..df2f7ea8 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/Models.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Models.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; internal record Request(string Name); diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/NameMetrics.cs b/examples/MinimalLambda.Example.OpenTelemetry/NameMetrics.cs similarity index 90% rename from examples/AwsLambda.Host.Example.OpenTelemetry/NameMetrics.cs rename to examples/MinimalLambda.Example.OpenTelemetry/NameMetrics.cs index 155f1894..c7137102 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/NameMetrics.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/NameMetrics.cs @@ -1,6 +1,6 @@ using System.Diagnostics.Metrics; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; public class NameMetrics { diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/OpenTelemetryRegistrationExtensions.cs b/examples/MinimalLambda.Example.OpenTelemetry/OpenTelemetryRegistrationExtensions.cs similarity index 97% rename from examples/AwsLambda.Host.Example.OpenTelemetry/OpenTelemetryRegistrationExtensions.cs rename to examples/MinimalLambda.Example.OpenTelemetry/OpenTelemetryRegistrationExtensions.cs index da93cfa3..38f56b33 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/OpenTelemetryRegistrationExtensions.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/OpenTelemetryRegistrationExtensions.cs @@ -5,7 +5,7 @@ using OpenTelemetry.Resources; using OpenTelemetry.Trace; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; internal static class OpenTelemetryRegistrationExtensions { diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/Program.cs b/examples/MinimalLambda.Example.OpenTelemetry/Program.cs similarity index 71% rename from examples/AwsLambda.Host.Example.OpenTelemetry/Program.cs rename to examples/MinimalLambda.Example.OpenTelemetry/Program.cs index 8f554e99..53de3911 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/Program.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Program.cs @@ -1,7 +1,5 @@ -ο»Ώusing AwsLambda.Host.Builder; -using AwsLambda.Host.Example.OpenTelemetry; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; +ο»Ώusing Microsoft.Extensions.Hosting; +using MinimalLambda.Host.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/Properties/launchSettings.json b/examples/MinimalLambda.Example.OpenTelemetry/Properties/launchSettings.json similarity index 100% rename from examples/AwsLambda.Host.Example.OpenTelemetry/Properties/launchSettings.json rename to examples/MinimalLambda.Example.OpenTelemetry/Properties/launchSettings.json diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/README.md b/examples/MinimalLambda.Example.OpenTelemetry/README.md similarity index 100% rename from examples/AwsLambda.Host.Example.OpenTelemetry/README.md rename to examples/MinimalLambda.Example.OpenTelemetry/README.md diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/Service.cs b/examples/MinimalLambda.Example.OpenTelemetry/Service.cs similarity index 91% rename from examples/AwsLambda.Host.Example.OpenTelemetry/Service.cs rename to examples/MinimalLambda.Example.OpenTelemetry/Service.cs index f19461aa..2ff929a5 100644 --- a/examples/AwsLambda.Host.Example.OpenTelemetry/Service.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Service.cs @@ -1,6 +1,6 @@ using System.Diagnostics; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; internal class Service(Instrumentation instrumentation, NameMetrics nameMetrics) : IService { diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/docker-compose.yml b/examples/MinimalLambda.Example.OpenTelemetry/docker-compose.yml similarity index 100% rename from examples/AwsLambda.Host.Example.OpenTelemetry/docker-compose.yml rename to examples/MinimalLambda.Example.OpenTelemetry/docker-compose.yml diff --git a/examples/AwsLambda.Host.Example.OpenTelemetry/events/SavedRequests/__DefaultFunction__/Lambda.Host.Example.OpenTelemetry Event.json b/examples/MinimalLambda.Example.OpenTelemetry/events/SavedRequests/__DefaultFunction__/Lambda.Host.Example.OpenTelemetry Event.json similarity index 100% rename from examples/AwsLambda.Host.Example.OpenTelemetry/events/SavedRequests/__DefaultFunction__/Lambda.Host.Example.OpenTelemetry Event.json rename to examples/MinimalLambda.Example.OpenTelemetry/events/SavedRequests/__DefaultFunction__/Lambda.Host.Example.OpenTelemetry Event.json diff --git a/src/AwsLambda.Host.SourceGenerators/TemplateHelper.cs b/src/AwsLambda.Host.SourceGenerators/TemplateHelper.cs deleted file mode 100644 index 1b06fba1..00000000 --- a/src/AwsLambda.Host.SourceGenerators/TemplateHelper.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.IO; -using System.Linq; -using System.Reflection; -using Scriban; - -namespace AwsLambda.Host.SourceGenerators; - -internal static class TemplateHelper -{ - /// Loads a Scriban template from embedded resources - /// Name of the template file (without .scriban extension) - /// Parsed Scriban template - internal static Template LoadTemplate(string relativePath) - { - var baseName = Assembly.GetExecutingAssembly().GetName().Name; - var templateName = - relativePath.TrimStart('.') - .Replace(Path.DirectorySeparatorChar, '.') - .Replace(Path.AltDirectorySeparatorChar, '.'); - - var manifestTemplateName = - Assembly.GetExecutingAssembly() - .GetManifestResourceNames() - .FirstOrDefault(x => x!.EndsWith(templateName, StringComparison.InvariantCulture)); - - if (string.IsNullOrEmpty(manifestTemplateName)) - throw new InvalidOperationException( - $"Did not find required resource ending in '{templateName}' in assembly '{baseName}'." - ); - - using var stream = - Assembly.GetExecutingAssembly().GetManifestResourceStream(manifestTemplateName); - if (stream == null) - throw new FileNotFoundException( - $"Template '{relativePath}' not found in embedded resources." - ); - - using var reader = new StreamReader(stream); - var templateContent = reader.ReadToEnd(); - - var template = Template.Parse(templateContent); - if (template.HasErrors) - { - var errors = string.Join("; ", template.Messages.Select(m => m.ToString())); - throw new InvalidOperationException( - $"Template parsing errors in '{templateName}': {errors}" - ); - } - - return template; - } -} diff --git a/src/AwsLambda.Host.SourceGenerators/Templates/GenericHandler.scriban b/src/AwsLambda.Host.SourceGenerators/Templates/GenericHandler.scriban deleted file mode 100644 index 949c29dc..00000000 --- a/src/AwsLambda.Host.SourceGenerators/Templates/GenericHandler.scriban +++ /dev/null @@ -1,55 +0,0 @@ -namespace AwsLambda.Host.Core.Generated -{ - using System; - using System.CodeDom.Compiler; - using System.Runtime.CompilerServices; - using System.Threading; - using System.Threading.Tasks; - using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - {{ generated_code_attribute }} - file static class GeneratedLambda{{ name }}BuilderExtensions - { - {{~ for call in calls ~}} - // Location: {{ call.location.display_location }} - [InterceptsLocation({{ call.location.version }}, "{{ call.location.data }}")] - internal static {{ call.target_type }} {{ name }}Interceptor{{ for.index }}{{ call.generic_parameters }}( - this {{ call.target_type }} application, - Delegate handler - ) - { - var castHandler = ({{ call.handler_signature }})handler; - - return application.{{ name }}({{ name }}); - - {{ if call.should_await ~}} async {{ end ~}}{{ call.wrapper_return_type }} {{ name }}(IServiceProvider serviceProvider, CancellationToken cancellationToken) - { - {{~ if call.has_any_keyed_service_parameter ~}} - if (serviceProvider.GetService() is not IServiceProviderIsKeyedService) - { - throw new InvalidOperationException($"Unable to resolve service referenced by {nameof(FromKeyedServicesAttribute)}. The service provider doesn't support keyed services."); - } - {{~ end ~}} - {{~ for handler_arg in call.handler_args ~}} - // {{ handler_arg.string }} - var arg{{ for.index }} = {{ handler_arg.assignment }}; - {{~ end ~}} - {{ if call.should_return_response ~}} var response = {{ end }}{{ if call.should_await ~}} await {{ end ~}} castHandler.Invoke({{ for arg in call.handler_args }}arg{{ for.index }}{{ if !for.last }}, {{ end }}{{ end }}); - {{~ if call.should_return_response ~}} - {{~ if call.should_wrap_response ~}} - return Task.FromResult(response); - {{~ else ~}} - return response; - {{~ end ~}} - {{~ else if call.default_return_value != null ~}} - return {{ call.default_return_value }}; - {{~ end ~}} - } - } - {{~ if !for.last ~}} - - {{~ end ~}} - {{~ end ~}} - } -} \ No newline at end of file diff --git a/src/AwsLambda.Host.SourceGenerators/Templates/InterceptsLocationAttribute.scriban b/src/AwsLambda.Host.SourceGenerators/Templates/InterceptsLocationAttribute.scriban deleted file mode 100644 index 3802eca8..00000000 --- a/src/AwsLambda.Host.SourceGenerators/Templates/InterceptsLocationAttribute.scriban +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - -#nullable enable - -namespace System.Runtime.CompilerServices -{ - using System.CodeDom.Compiler; - - {{ generated_code_attribute }} - [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] - file sealed class InterceptsLocationAttribute : Attribute - { - public InterceptsLocationAttribute(int version, string data) - { - } - } -} diff --git a/src/AwsLambda.Host.SourceGenerators/Templates/MapHandler.scriban b/src/AwsLambda.Host.SourceGenerators/Templates/MapHandler.scriban deleted file mode 100644 index d60d1c94..00000000 --- a/src/AwsLambda.Host.SourceGenerators/Templates/MapHandler.scriban +++ /dev/null @@ -1,76 +0,0 @@ -namespace AwsLambda.Host.Core.Generated -{ - using System; - using System.CodeDom.Compiler; - using System.Runtime.CompilerServices; - using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; - using Microsoft.Extensions.DependencyInjection; - - {{ generated_code_attribute }} - file static class GeneratedLambdaInvocationBuilderExtensions - { - private const string EventFeatureProviderKey = "__EventFeatureProvider"; - private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - - {{~ for call in map_handler_calls ~}} - // Location: {{ call.location.display_location }} - [InterceptsLocation({{ call.location.version }}, "{{ call.location.data }}")] - internal static ILambdaInvocationBuilder MapHandlerInterceptor{{ for.index }}( - this ILambdaInvocationBuilder application, - Delegate handler - ) - { - var castHandler = ({{ call.handler_signature }})handler; - - application.Handle(InvocationDelegate); - {{~ if call.is_event_feature_required ~}} - - if (!application.Properties.ContainsKey(EventFeatureProviderKey)) - application.Properties[EventFeatureProviderKey] = application - .Services.GetRequiredService() - .Create<{{ call.input_event.type }}>(); - {{~ end ~}} - {{~ if call.is_response_feature_required ~}} - - if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) - application.Properties[ResponseFeatureProviderKey] = application. - Services.GetRequiredService() - .Create<{{ call.output_response.response_type }}>(); - {{~ end ~}} - - return application; - - {{ if call.should_await ~}} async {{ end ~}}Task InvocationDelegate(ILambdaHostContext context) - { - {{~ if call.has_any_keyed_service_parameter ~}} - if (context.ServiceProvider.GetService() is not IServiceProviderIsKeyedService) - { - throw new InvalidOperationException($"Unable to resolve service referenced by {nameof(FromKeyedServicesAttribute)}. The service provider doesn't support keyed services."); - } - {{~ end ~}} - {{~ for handler_arg in call.handler_args ~}} - // {{ handler_arg.string }} - var arg{{ for.index }} = {{ handler_arg.assignment }}; - {{~ end ~}} - {{ if call.output_response != null; ~}} var response = {{ end }}{{ if call.should_await ~}} await {{ end ~}} castHandler.Invoke({{ for arg in call.handler_args }}arg{{ for.index }}{{ if !for.last }}, {{ end }}{{ end }}); - {{~ if call.output_response != null; ~}} - {{~ if call.output_response.response_is_stream ~}} - context.Features.GetRequired().ResponseStream = response; - {{~ else ~}} - if (context.Features.Get() is not IResponseFeature<{{ call.output_response.response_type }}> responseFeature) - { - throw new InvalidOperationException($"Response feature for type '{{ call.output_response.response_type }}' is not available in the collection."); - } - responseFeature.SetResponse(response); - {{~ end ~}} - {{~ end ~}} - {{~ if !call.should_await ~}} - return Task.CompletedTask; - {{~ end ~}} - } - } - {{~ end ~}} - } -} diff --git a/src/AwsLambda.Host/GlobalUsings.cs b/src/AwsLambda.Host/GlobalUsings.cs deleted file mode 100644 index 9492d0bb..00000000 --- a/src/AwsLambda.Host/GlobalUsings.cs +++ /dev/null @@ -1,4 +0,0 @@ -global using AwsLambda.Host.Builder; -global using AwsLambda.Host.Core; -global using AwsLambda.Host.Options; -global using AwsLambda.Host.Runtime; diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbRequestEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelope.cs similarity index 90% rename from src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbRequestEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelope.cs index 0fac56d7..dc07fcf2 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbRequestEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Alb; +namespace MinimalLambda.Envelopes.Alb; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbRequestEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelopeBase.cs similarity index 93% rename from src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbRequestEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelopeBase.cs index 39265374..fc6a020e 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbRequestEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.ApplicationLoadBalancerEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Alb; +namespace MinimalLambda.Envelopes.Alb; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelope.cs similarity index 90% rename from src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbResponseEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelope.cs index 345a2c49..41f1718b 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Alb; +namespace MinimalLambda.Envelopes.Alb; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelopeBase.cs similarity index 93% rename from src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbResponseEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelopeBase.cs index f1897f0c..5beaac6d 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AlbResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.ApplicationLoadBalancerEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Alb; +namespace MinimalLambda.Envelopes.Alb; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AwsLambda.Host.Envelopes.Alb.csproj b/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj similarity index 84% rename from src/Envelopes/AwsLambda.Host.Envelopes.Alb/AwsLambda.Host.Envelopes.Alb.csproj rename to src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj index 7081e2bb..9f719404 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/AwsLambda.Host.Envelopes.Alb.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Envelopes.Alb + MinimalLambda.Envelopes.Alb Strongly-typed Application Load Balancer Models for AWS Lambda README.md @@ -19,7 +19,7 @@ - + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Alb/README.md b/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.Alb/README.md rename to src/Envelopes/MinimalLambda.Envelopes.Alb/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs similarity index 90% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs index c8a4532c..b876bb4d 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs @@ -1,7 +1,8 @@ ο»Ώusing System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs similarity index 92% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs index 28eeeab4..db133fd8 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs similarity index 90% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs index a9f19929..bbc1ee91 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs similarity index 92% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs index 69f64f99..31954eb9 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs similarity index 90% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs index be8de69b..2897faae 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs @@ -1,7 +1,8 @@ ο»Ώusing System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs similarity index 92% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs index 4c24202f..c2659cb4 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs similarity index 90% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs index a7c69936..91a5b5c4 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs similarity index 92% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs index 19be6e57..e80259c8 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.ApiGateway; +namespace MinimalLambda.Envelopes.ApiGateway; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/AwsLambda.Host.Envelopes.ApiGateway.csproj b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj similarity index 83% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/AwsLambda.Host.Envelopes.ApiGateway.csproj rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj index 7bc6309d..1d4cf67c 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/AwsLambda.Host.Envelopes.ApiGateway.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Envelopes.ApiGateway + MinimalLambda.Envelopes.ApiGateway Strongly-typed API Gateway Models AWS Lambda README.md @@ -19,7 +19,7 @@ - + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/README.md b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway/README.md rename to src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs similarity index 95% rename from src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs index c08de574..4bb6c37a 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs @@ -1,6 +1,6 @@ using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.CloudWatchLogs; +namespace MinimalLambda.Envelopes.CloudWatchLogs; /// /// Processes CloudWatch Logs events where log messages are plain strings that do not require diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs similarity index 97% rename from src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs index 3904c139..d604c578 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs @@ -1,9 +1,10 @@ using System.Text.Json; using System.Text.Json.Serialization; using Amazon.Lambda.CloudWatchLogsEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.CloudWatchLogs; +namespace MinimalLambda.Envelopes.CloudWatchLogs; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs similarity index 94% rename from src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs rename to src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs index 31070546..cb1ab2a5 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.CloudWatchLogs; +namespace MinimalLambda.Envelopes.CloudWatchLogs; /// /// Processes CloudWatch Logs events and deserializes each log message into a strongly typed diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/AwsLambda.Host.Envelopes.CloudWatchLogs.csproj b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj similarity index 83% rename from src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/AwsLambda.Host.Envelopes.CloudWatchLogs.csproj rename to src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj index 15598099..259c5c75 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/AwsLambda.Host.Envelopes.CloudWatchLogs.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Envelopes.CloudWatchLogs + MinimalLambda.Envelopes.CloudWatchLogs Strongly-typed CloudWatch Logs Models AWS Lambda README.md @@ -19,7 +19,7 @@ - + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/README.md b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/README.md rename to src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/SAMPLE_EVENTS.md b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/SAMPLE_EVENTS.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/SAMPLE_EVENTS.md rename to src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/SAMPLE_EVENTS.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kafka/KafkaEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelope.cs similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kafka/KafkaEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelope.cs diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kafka/KafkaEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelopeBase.cs similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kafka/KafkaEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelopeBase.cs diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kafka/AwsLambda.Host.Envelopes.Kafka.csproj b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj similarity index 79% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kafka/AwsLambda.Host.Envelopes.Kafka.csproj rename to src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj index 9fc88fc7..02f70dbd 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Kafka/AwsLambda.Host.Envelopes.Kafka.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj @@ -8,9 +8,10 @@ true true - AwsLambda.Host.Envelopes.Kafka + MinimalLambda.Envelopes.Kafka Strongly-typed Kafka Models AWS Lambda README.md + AwsLambda.Host.Envelopes.Kafka @@ -19,7 +20,7 @@ - + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kafka/README.md b/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kafka/README.md rename to src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/KinesisEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelope.cs similarity index 93% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/KinesisEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelope.cs index 035a652a..829f0670 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/KinesisEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelope.cs @@ -1,8 +1,9 @@ using System.Text; using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Kinesis; +namespace MinimalLambda.Envelopes.Kinesis; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/KinesisEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelopeBase.cs similarity index 95% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/KinesisEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelopeBase.cs index be36a5b1..9a433aff 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/KinesisEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.KinesisEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Kinesis; +namespace MinimalLambda.Envelopes.Kinesis; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/AwsLambda.Host.Envelopes.Kinesis.csproj b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj similarity index 83% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/AwsLambda.Host.Envelopes.Kinesis.csproj rename to src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj index 4ba4f910..71169200 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/AwsLambda.Host.Envelopes.Kinesis.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Envelopes.Kinesis + MinimalLambda.Envelopes.Kinesis Strongly-typed Kinesis Models AWS Lambda README.md @@ -19,7 +19,7 @@ - + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/README.md b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.Kinesis/README.md rename to src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs similarity index 91% rename from src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs index cd4e15f0..cf29c45d 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.KinesisFirehose; +namespace MinimalLambda.Envelopes.KinesisFirehose; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs similarity index 93% rename from src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs index 06edf95f..db2b6750 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.KinesisFirehoseEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.KinesisFirehose; +namespace MinimalLambda.Envelopes.KinesisFirehose; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs similarity index 91% rename from src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs index 8078fc35..af4fd8da 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.KinesisFirehose; +namespace MinimalLambda.Envelopes.KinesisFirehose; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs similarity index 94% rename from src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs index 04bf91f3..9a947933 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.KinesisFirehoseEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.KinesisFirehose; +namespace MinimalLambda.Envelopes.KinesisFirehose; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/AwsLambda.Host.Envelopes.KinesisFirehose.csproj b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj similarity index 83% rename from src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/AwsLambda.Host.Envelopes.KinesisFirehose.csproj rename to src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj index a9e98f6f..55e9a18b 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/AwsLambda.Host.Envelopes.KinesisFirehose.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Envelopes.KinesisFirehose + MinimalLambda.Envelopes.KinesisFirehose Strongly-typed Kinesis Firehose Models AWS Lambda README.md @@ -19,7 +19,7 @@ - + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/README.md b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/README.md rename to src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sns/AwsLambda.Host.Envelopes.Sns.csproj b/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj similarity index 84% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sns/AwsLambda.Host.Envelopes.Sns.csproj rename to src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj index e3144b16..31a28ca1 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Sns/AwsLambda.Host.Envelopes.Sns.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Envelopes.Sns + MinimalLambda.Envelopes.Sns Strongly-typed SNS Models for AWS Lambda README.md @@ -19,7 +19,7 @@ - + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sns/README.md b/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sns/README.md rename to src/Envelopes/MinimalLambda.Envelopes.Sns/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sns/SnsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelope.cs similarity index 92% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sns/SnsEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelope.cs index 3018a7a3..8e4e5e2e 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Sns/SnsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Sns; +namespace MinimalLambda.Envelopes.Sns; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sns/SnsEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelopeBase.cs similarity index 94% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sns/SnsEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelopeBase.cs index 8193610f..87d1d6d2 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Sns/SnsEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.SNSEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Sns; +namespace MinimalLambda.Envelopes.Sns; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/AwsLambda.Host.Envelopes.Sqs.csproj b/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj similarity index 76% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sqs/AwsLambda.Host.Envelopes.Sqs.csproj rename to src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj index 3371cceb..e5f35371 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/AwsLambda.Host.Envelopes.Sqs.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Envelopes.Sqs + MinimalLambda.Envelopes.Sqs Strongly-typed SQS Models AWS Lambda README.md @@ -19,8 +19,8 @@ - - + + diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/README.md b/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md similarity index 100% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sqs/README.md rename to src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelope.cs similarity index 91% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelope.cs index d2f603c2..263bae2c 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelope.cs @@ -1,7 +1,8 @@ using System.Text.Json; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Sqs; +namespace MinimalLambda.Envelopes.Sqs; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelopeBase.cs similarity index 93% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsEnvelopeBase.cs rename to src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelopeBase.cs index a9ee016e..ef942d4f 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelopeBase.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Amazon.Lambda.SQSEvents; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; -namespace AwsLambda.Host.Envelopes.Sqs; +namespace MinimalLambda.Envelopes.Sqs; /// /// diff --git a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsSnsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsSnsEnvelope.cs similarity index 95% rename from src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsSnsEnvelope.cs rename to src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsSnsEnvelope.cs index ffa88e72..ad52d875 100644 --- a/src/Envelopes/AwsLambda.Host.Envelopes.Sqs/SqsSnsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsSnsEnvelope.cs @@ -1,8 +1,9 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes.Sns; +using AwsLambda.Host.Envelopes; using AwsLambda.Host.Options; +using MinimalLambda.Envelopes.Sns; -namespace AwsLambda.Host.Envelopes.Sqs; +namespace MinimalLambda.Envelopes.Sqs; /// /// diff --git a/src/AwsLambda.Host.Abstractions/Builders/ILambdaInvocationBuilder.cs b/src/MinimalLambda.Abstractions/Builders/ILambdaInvocationBuilder.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Builders/ILambdaInvocationBuilder.cs rename to src/MinimalLambda.Abstractions/Builders/ILambdaInvocationBuilder.cs diff --git a/src/AwsLambda.Host.Abstractions/Builders/ILambdaOnInitBuilder.cs b/src/MinimalLambda.Abstractions/Builders/ILambdaOnInitBuilder.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Builders/ILambdaOnInitBuilder.cs rename to src/MinimalLambda.Abstractions/Builders/ILambdaOnInitBuilder.cs diff --git a/src/AwsLambda.Host.Abstractions/Builders/ILambdaOnShutdownBuilder.cs b/src/MinimalLambda.Abstractions/Builders/ILambdaOnShutdownBuilder.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Builders/ILambdaOnShutdownBuilder.cs rename to src/MinimalLambda.Abstractions/Builders/ILambdaOnShutdownBuilder.cs diff --git a/src/AwsLambda.Host.Abstractions/Core/ILambdaCancellationFactory.cs b/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Core/ILambdaCancellationFactory.cs rename to src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs diff --git a/src/AwsLambda.Host.Abstractions/Core/ILambdaHostContext.cs b/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Core/ILambdaHostContext.cs rename to src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs diff --git a/src/AwsLambda.Host.Abstractions/Core/ILambdaHostContextAccessor.cs b/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Core/ILambdaHostContextAccessor.cs rename to src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs diff --git a/src/AwsLambda.Host.Abstractions/Delegates/LambdaInitDelegate.cs b/src/MinimalLambda.Abstractions/Delegates/LambdaInitDelegate.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Delegates/LambdaInitDelegate.cs rename to src/MinimalLambda.Abstractions/Delegates/LambdaInitDelegate.cs diff --git a/src/AwsLambda.Host.Abstractions/Delegates/LambdaInvocationDelegate.cs b/src/MinimalLambda.Abstractions/Delegates/LambdaInvocationDelegate.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Delegates/LambdaInvocationDelegate.cs rename to src/MinimalLambda.Abstractions/Delegates/LambdaInvocationDelegate.cs diff --git a/src/AwsLambda.Host.Abstractions/Delegates/LambdaShutdownDelegate.cs b/src/MinimalLambda.Abstractions/Delegates/LambdaShutdownDelegate.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Delegates/LambdaShutdownDelegate.cs rename to src/MinimalLambda.Abstractions/Delegates/LambdaShutdownDelegate.cs diff --git a/src/AwsLambda.Host.Abstractions/Envelopes/IRequestEnvelope.cs b/src/MinimalLambda.Abstractions/Envelopes/IRequestEnvelope.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Envelopes/IRequestEnvelope.cs rename to src/MinimalLambda.Abstractions/Envelopes/IRequestEnvelope.cs diff --git a/src/AwsLambda.Host.Abstractions/Envelopes/IResponseEnvelope.cs b/src/MinimalLambda.Abstractions/Envelopes/IResponseEnvelope.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Envelopes/IResponseEnvelope.cs rename to src/MinimalLambda.Abstractions/Envelopes/IResponseEnvelope.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IEventFeature.cs b/src/MinimalLambda.Abstractions/Features/IEventFeature.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IEventFeature.cs rename to src/MinimalLambda.Abstractions/Features/IEventFeature.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IEventFeatureProviderFactory.cs b/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IEventFeatureProviderFactory.cs rename to src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IEventFeatureT.cs b/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IEventFeatureT.cs rename to src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IFeatureCollection.cs b/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IFeatureCollection.cs rename to src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IFeatureProvider.cs b/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IFeatureProvider.cs rename to src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IInvocationDataFeature.cs b/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IInvocationDataFeature.cs rename to src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IResponseFeature.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IResponseFeature.cs rename to src/MinimalLambda.Abstractions/Features/IResponseFeature.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IResponseFeatureProviderFactory.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IResponseFeatureProviderFactory.cs rename to src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs diff --git a/src/AwsLambda.Host.Abstractions/Features/IResponseFeatureT.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Features/IResponseFeatureT.cs rename to src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs diff --git a/src/AwsLambda.Host.Abstractions/GlobalUsings.cs b/src/MinimalLambda.Abstractions/GlobalUsings.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/GlobalUsings.cs rename to src/MinimalLambda.Abstractions/GlobalUsings.cs diff --git a/src/AwsLambda.Host.Abstractions/AwsLambda.Host.Abstractions.csproj b/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj similarity index 93% rename from src/AwsLambda.Host.Abstractions/AwsLambda.Host.Abstractions.csproj rename to src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj index f89f3a8e..14787edf 100644 --- a/src/AwsLambda.Host.Abstractions/AwsLambda.Host.Abstractions.csproj +++ b/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj @@ -8,7 +8,7 @@ true true - AwsLambda.Host.Abstractions + MinimalLambda.Abstractions Abstractions for .NET Host for AWS Lambda README.md diff --git a/src/AwsLambda.Host.Abstractions/Options/EnvelopeOptions.cs b/src/MinimalLambda.Abstractions/Options/EnvelopeOptions.cs similarity index 100% rename from src/AwsLambda.Host.Abstractions/Options/EnvelopeOptions.cs rename to src/MinimalLambda.Abstractions/Options/EnvelopeOptions.cs diff --git a/src/AwsLambda.Host.Abstractions/README.md b/src/MinimalLambda.Abstractions/README.md similarity index 100% rename from src/AwsLambda.Host.Abstractions/README.md rename to src/MinimalLambda.Abstractions/README.md diff --git a/src/AwsLambda.Host/Builder/DefaultLambdaInvocationBuilderFactory.cs b/src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs similarity index 85% rename from src/AwsLambda.Host/Builder/DefaultLambdaInvocationBuilderFactory.cs rename to src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs index 39298725..715f4e9b 100644 --- a/src/AwsLambda.Host/Builder/DefaultLambdaInvocationBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal class DefaultLambdaInvocationBuilderFactory(IServiceProvider serviceProvider) : ILambdaInvocationBuilderFactory diff --git a/src/AwsLambda.Host/Builder/DefaultLambdaOnInitBuilderFactory.cs b/src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs similarity index 91% rename from src/AwsLambda.Host/Builder/DefaultLambdaOnInitBuilderFactory.cs rename to src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs index dfc0b70d..b2aba949 100644 --- a/src/AwsLambda.Host/Builder/DefaultLambdaOnInitBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal class DefaultLambdaOnInitBuilderFactory( IServiceProvider serviceProvider, diff --git a/src/AwsLambda.Host/Builder/DefaultLambdaOnShutdownBuilderFactory.cs b/src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs similarity index 90% rename from src/AwsLambda.Host/Builder/DefaultLambdaOnShutdownBuilderFactory.cs rename to src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs index 1c976aa9..71a4c5f1 100644 --- a/src/AwsLambda.Host/Builder/DefaultLambdaOnShutdownBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal class DefaultLambdaOnShutdownBuilderFactory( IServiceProvider serviceProvider, diff --git a/src/AwsLambda.Host/Builder/EventAttribute.cs b/src/MinimalLambda.Core/Builder/EventAttribute.cs similarity index 97% rename from src/AwsLambda.Host/Builder/EventAttribute.cs rename to src/MinimalLambda.Core/Builder/EventAttribute.cs index 61fcb664..82a6df34 100644 --- a/src/AwsLambda.Host/Builder/EventAttribute.cs +++ b/src/MinimalLambda.Core/Builder/EventAttribute.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// Marks a parameter to receive the deserialized Lambda event object. /// diff --git a/src/AwsLambda.Host/Builder/Extensions/BuilderLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs similarity index 98% rename from src/AwsLambda.Host/Builder/Extensions/BuilderLambdaApplicationExtensions.cs rename to src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs index 3202119b..538d450d 100644 --- a/src/AwsLambda.Host/Builder/Extensions/BuilderLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// /// Provides extension methods on for creating and diff --git a/src/AwsLambda.Host/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs similarity index 100% rename from src/AwsLambda.Host/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs rename to src/MinimalLambda.Core/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs diff --git a/src/AwsLambda.Host/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs similarity index 99% rename from src/AwsLambda.Host/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs rename to src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs index 20c65192..7685c147 100644 --- a/src/AwsLambda.Host/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs +++ b/src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -namespace AwsLambda.Host.Builder.Extensions; +namespace MinimalLambda.Host.Builder.Extensions; /// /// Extension methods for configuring the Lambda bootstrap HTTP client in an diff --git a/src/AwsLambda.Host/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs similarity index 98% rename from src/AwsLambda.Host/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs rename to src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs index 86e0dffd..1183251c 100644 --- a/src/AwsLambda.Host/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// Provides extension methods for adding middleware to the Lambda invocation pipeline. public static class MiddlewareLambdaApplicationExtensions diff --git a/src/AwsLambda.Host/Builder/Extensions/SerializerServiceCollectionExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/SerializerServiceCollectionExtensions.cs similarity index 100% rename from src/AwsLambda.Host/Builder/Extensions/SerializerServiceCollectionExtensions.cs rename to src/MinimalLambda.Core/Builder/Extensions/SerializerServiceCollectionExtensions.cs diff --git a/src/AwsLambda.Host/Builder/Extensions/ServiceCollectionExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/ServiceCollectionExtensions.cs similarity index 100% rename from src/AwsLambda.Host/Builder/Extensions/ServiceCollectionExtensions.cs rename to src/MinimalLambda.Core/Builder/Extensions/ServiceCollectionExtensions.cs diff --git a/src/AwsLambda.Host/Builder/ILambdaInvocationBuilderFactory.cs b/src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs similarity index 72% rename from src/AwsLambda.Host/Builder/ILambdaInvocationBuilderFactory.cs rename to src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs index a44827e4..f4452333 100644 --- a/src/AwsLambda.Host/Builder/ILambdaInvocationBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal interface ILambdaInvocationBuilderFactory { diff --git a/src/AwsLambda.Host/Builder/ILambdaOnInitBuilderFactory.cs b/src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs similarity index 71% rename from src/AwsLambda.Host/Builder/ILambdaOnInitBuilderFactory.cs rename to src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs index 12948eab..894107c2 100644 --- a/src/AwsLambda.Host/Builder/ILambdaOnInitBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal interface ILambdaOnInitBuilderFactory { diff --git a/src/AwsLambda.Host/Builder/ILambdaOnShutdownBuilderFactory.cs b/src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs similarity index 72% rename from src/AwsLambda.Host/Builder/ILambdaOnShutdownBuilderFactory.cs rename to src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs index 66b7ec77..eefdc771 100644 --- a/src/AwsLambda.Host/Builder/ILambdaOnShutdownBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal interface ILambdaOnShutdownBuilderFactory { diff --git a/src/AwsLambda.Host/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs similarity index 98% rename from src/AwsLambda.Host/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs rename to src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs index 4d874b35..fa058d67 100644 --- a/src/AwsLambda.Host/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// /// Overloads for diff --git a/src/AwsLambda.Host/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs similarity index 98% rename from src/AwsLambda.Host/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs rename to src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs index 0c8ecb84..0ac64d9b 100644 --- a/src/AwsLambda.Host/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// /// Overloads for that support diff --git a/src/AwsLambda.Host/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs similarity index 98% rename from src/AwsLambda.Host/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs rename to src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs index 717d2684..49871606 100644 --- a/src/AwsLambda.Host/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// /// Overloads for diff --git a/src/AwsLambda.Host/Builder/LambdaApplication.cs b/src/MinimalLambda.Core/Builder/LambdaApplication.cs similarity index 99% rename from src/AwsLambda.Host/Builder/LambdaApplication.cs rename to src/MinimalLambda.Core/Builder/LambdaApplication.cs index c1874d17..bcfd6854 100644 --- a/src/AwsLambda.Host/Builder/LambdaApplication.cs +++ b/src/MinimalLambda.Core/Builder/LambdaApplication.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// A Lambda application that provides host functionality for running AWS Lambda handlers. public sealed class LambdaApplication diff --git a/src/AwsLambda.Host/Builder/LambdaApplicationBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs similarity index 99% rename from src/AwsLambda.Host/Builder/LambdaApplicationBuilder.cs rename to src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs index 46980047..d58221e0 100644 --- a/src/AwsLambda.Host/Builder/LambdaApplicationBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs @@ -15,7 +15,7 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// A builder for configuring and constructing an AWS Lambda Host application. /// diff --git a/src/AwsLambda.Host/Builder/LambdaInvocationBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs similarity index 97% rename from src/AwsLambda.Host/Builder/LambdaInvocationBuilder.cs rename to src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs index a413c149..3152a889 100644 --- a/src/AwsLambda.Host/Builder/LambdaInvocationBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal class LambdaInvocationBuilder : ILambdaInvocationBuilder { diff --git a/src/AwsLambda.Host/Builder/LambdaOnInitBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs similarity index 98% rename from src/AwsLambda.Host/Builder/LambdaOnInitBuilder.cs rename to src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs index 36505cfa..4cd1a098 100644 --- a/src/AwsLambda.Host/Builder/LambdaOnInitBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal class LambdaOnInitBuilder : ILambdaOnInitBuilder { diff --git a/src/AwsLambda.Host/Builder/LambdaOnShutdownBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs similarity index 98% rename from src/AwsLambda.Host/Builder/LambdaOnShutdownBuilder.cs rename to src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs index a3f9deba..68706be5 100644 --- a/src/AwsLambda.Host/Builder/LambdaOnShutdownBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; internal class LambdaOnShutdownBuilder : ILambdaOnShutdownBuilder { diff --git a/src/AwsLambda.Host/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs b/src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs similarity index 98% rename from src/AwsLambda.Host/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs rename to src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs index 25dfe8e1..92816c3f 100644 --- a/src/AwsLambda.Host/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs +++ b/src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// /// Provides extension methods for clearing Lambda runtime output formatting in the middleware diff --git a/src/AwsLambda.Host/Builder/Middleware/RequestEnvelopeMiddleware.cs b/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs similarity index 96% rename from src/AwsLambda.Host/Builder/Middleware/RequestEnvelopeMiddleware.cs rename to src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs index 515a16f6..e5602151 100644 --- a/src/AwsLambda.Host/Builder/Middleware/RequestEnvelopeMiddleware.cs +++ b/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs @@ -1,8 +1,6 @@ -using AwsLambda.Host.Envelopes; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// Provides middleware for processing Lambda event and response envelopes. public static class RequestEnvelopeMiddleware diff --git a/src/AwsLambda.Host/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs similarity index 95% rename from src/AwsLambda.Host/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs rename to src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs index 2e1c6571..8f9576dd 100644 --- a/src/AwsLambda.Host/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs @@ -1,7 +1,6 @@ -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// Provides extension methods for managing Lambda runtime output formatting. public static class OutputFormattingLambdaApplicationExtensions diff --git a/src/AwsLambda.Host/Core/Cancellation/DefaultLambdaCancellationFactory.cs b/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs similarity index 99% rename from src/AwsLambda.Host/Core/Cancellation/DefaultLambdaCancellationFactory.cs rename to src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs index 93f52541..3f410b6e 100644 --- a/src/AwsLambda.Host/Core/Cancellation/DefaultLambdaCancellationFactory.cs +++ b/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; /// /// Provides functionality to create a with respect to diff --git a/src/AwsLambda.Host/Core/Context/DefaultLambdaHostContext.cs b/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs similarity index 99% rename from src/AwsLambda.Host/Core/Context/DefaultLambdaHostContext.cs rename to src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs index 4c07e181..6c74a692 100644 --- a/src/AwsLambda.Host/Core/Context/DefaultLambdaHostContext.cs +++ b/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal sealed class DefaultLambdaHostContext : ILambdaHostContext, IAsyncDisposable { diff --git a/src/AwsLambda.Host/Core/Context/ILambdaHostContextFactory.cs b/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs similarity index 87% rename from src/AwsLambda.Host/Core/Context/ILambdaHostContextFactory.cs rename to src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs index a8fbe41c..8aa87f97 100644 --- a/src/AwsLambda.Host/Core/Context/ILambdaHostContextFactory.cs +++ b/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal interface ILambdaHostContextFactory { diff --git a/src/AwsLambda.Host/Core/Context/LambdaHostContextAccessor.cs b/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs similarity index 96% rename from src/AwsLambda.Host/Core/Context/LambdaHostContextAccessor.cs rename to src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs index 63745206..957189ae 100644 --- a/src/AwsLambda.Host/Core/Context/LambdaHostContextAccessor.cs +++ b/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs @@ -6,7 +6,7 @@ // See THIRD-PARTY-LICENSES.txt file in the project root or visit // https://github.com/dotnet/aspnetcore/blob/v10.0.0/LICENSE.txt -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal class LambdaHostContextAccessor : ILambdaHostContextAccessor { diff --git a/src/AwsLambda.Host/Core/Context/LambdaHostContextFactory.cs b/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs similarity index 98% rename from src/AwsLambda.Host/Core/Context/LambdaHostContextFactory.cs rename to src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs index bf8505fa..e586fe8e 100644 --- a/src/AwsLambda.Host/Core/Context/LambdaHostContextFactory.cs +++ b/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal class LambdaHostContextFactory : ILambdaHostContextFactory { diff --git a/src/AwsLambda.Host/Core/Features/DefaultEventFeature.cs b/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs similarity index 96% rename from src/AwsLambda.Host/Core/Features/DefaultEventFeature.cs rename to src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs index 263df57e..a4946a3e 100644 --- a/src/AwsLambda.Host/Core/Features/DefaultEventFeature.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; /// /// Default implementation of that is used by source generated diff --git a/src/AwsLambda.Host/Core/Features/DefaultEventFeatureProvider.cs b/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs similarity index 95% rename from src/AwsLambda.Host/Core/Features/DefaultEventFeatureProvider.cs rename to src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs index 65085640..7c391899 100644 --- a/src/AwsLambda.Host/Core/Features/DefaultEventFeatureProvider.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; /// /// Provides a default implementation of for Lambda event diff --git a/src/AwsLambda.Host/Core/Features/DefaultFeatureCollection.cs b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs similarity index 97% rename from src/AwsLambda.Host/Core/Features/DefaultFeatureCollection.cs rename to src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs index 685a370c..8fd28bbc 100644 --- a/src/AwsLambda.Host/Core/Features/DefaultFeatureCollection.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs @@ -8,7 +8,7 @@ using System.Collections; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal class DefaultFeatureCollection : IFeatureCollection { diff --git a/src/AwsLambda.Host/Core/Features/DefaultFeatureCollectionFactory.cs b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs similarity index 89% rename from src/AwsLambda.Host/Core/Features/DefaultFeatureCollectionFactory.cs rename to src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs index ec634ac7..65a19fba 100644 --- a/src/AwsLambda.Host/Core/Features/DefaultFeatureCollectionFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal class DefaultFeatureCollectionFactory(IEnumerable providers) : IFeatureCollectionFactory diff --git a/src/AwsLambda.Host/Core/Features/DefaultResponseFeature.cs b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs similarity index 97% rename from src/AwsLambda.Host/Core/Features/DefaultResponseFeature.cs rename to src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs index 1ab38981..44caaf42 100644 --- a/src/AwsLambda.Host/Core/Features/DefaultResponseFeature.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; /// /// Default implementation of that is used by source diff --git a/src/AwsLambda.Host/Core/Features/DefaultResponseFeatureProvider.cs b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs similarity index 95% rename from src/AwsLambda.Host/Core/Features/DefaultResponseFeatureProvider.cs rename to src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs index 73e74ee6..2924f9fe 100644 --- a/src/AwsLambda.Host/Core/Features/DefaultResponseFeatureProvider.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; /// /// Provides a default implementation of for Lambda response diff --git a/src/AwsLambda.Host/Core/Features/EventFeatureProviderFactory.cs b/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs similarity index 87% rename from src/AwsLambda.Host/Core/Features/EventFeatureProviderFactory.cs rename to src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs index 39b16364..a69a1a4e 100644 --- a/src/AwsLambda.Host/Core/Features/EventFeatureProviderFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal class EventFeatureProviderFactory(ILambdaSerializer lambdaSerializer) : IEventFeatureProviderFactory diff --git a/src/AwsLambda.Host/Core/Features/FeatureCollectionExtensions.cs b/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs similarity index 98% rename from src/AwsLambda.Host/Core/Features/FeatureCollectionExtensions.cs rename to src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs index 74a251be..e963797c 100644 --- a/src/AwsLambda.Host/Core/Features/FeatureCollectionExtensions.cs +++ b/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs @@ -8,7 +8,7 @@ using System.Diagnostics.CodeAnalysis; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; /// Extension methods for feature collections. public static class FeatureCollectionExtensions diff --git a/src/AwsLambda.Host/Core/Features/FeatureLambdaHostContextExtensions.cs b/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs similarity index 99% rename from src/AwsLambda.Host/Core/Features/FeatureLambdaHostContextExtensions.cs rename to src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs index 15df8b3a..072e831f 100644 --- a/src/AwsLambda.Host/Core/Features/FeatureLambdaHostContextExtensions.cs +++ b/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs @@ -1,6 +1,6 @@ using System.Diagnostics.CodeAnalysis; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; /// /// Provides extension methods for safely accessing typed event and response data from the diff --git a/src/AwsLambda.Host/Core/Features/IFeatureCollectionFactory.cs b/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs similarity index 78% rename from src/AwsLambda.Host/Core/Features/IFeatureCollectionFactory.cs rename to src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs index d2db74ba..6870310b 100644 --- a/src/AwsLambda.Host/Core/Features/IFeatureCollectionFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal interface IFeatureCollectionFactory { diff --git a/src/AwsLambda.Host/Core/Features/IInvocationDataFeatureFactory.cs b/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs similarity index 75% rename from src/AwsLambda.Host/Core/Features/IInvocationDataFeatureFactory.cs rename to src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs index 103b3602..99386d82 100644 --- a/src/AwsLambda.Host/Core/Features/IInvocationDataFeatureFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal interface IInvocationDataFeatureFactory { diff --git a/src/AwsLambda.Host/Core/Features/InvocationDataFeature.cs b/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs similarity index 92% rename from src/AwsLambda.Host/Core/Features/InvocationDataFeature.cs rename to src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs index dd2801ed..34abe054 100644 --- a/src/AwsLambda.Host/Core/Features/InvocationDataFeature.cs +++ b/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal sealed class InvocationDataFeature : IInvocationDataFeature { diff --git a/src/AwsLambda.Host/Core/Features/InvocationDataFeatureFactory.cs b/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs similarity index 85% rename from src/AwsLambda.Host/Core/Features/InvocationDataFeatureFactory.cs rename to src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs index 6bb76438..fc12755f 100644 --- a/src/AwsLambda.Host/Core/Features/InvocationDataFeatureFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal class InvocationDataFeatureFactory : IInvocationDataFeatureFactory { diff --git a/src/AwsLambda.Host/Core/Features/ResponseFeatureProviderFactory.cs b/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs similarity index 87% rename from src/AwsLambda.Host/Core/Features/ResponseFeatureProviderFactory.cs rename to src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs index 6196a355..d8272089 100644 --- a/src/AwsLambda.Host/Core/Features/ResponseFeatureProviderFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Host.Core; internal class ResponseFeatureProviderFactory(ILambdaSerializer lambdaSerializer) : IResponseFeatureProviderFactory diff --git a/src/AwsLambda.Host/Core/Options/EnvelopeOptionsPostConfiguration.cs b/src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs similarity index 88% rename from src/AwsLambda.Host/Core/Options/EnvelopeOptionsPostConfiguration.cs rename to src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs index 5a85809d..1a2a82de 100644 --- a/src/AwsLambda.Host/Core/Options/EnvelopeOptionsPostConfiguration.cs +++ b/src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Options; +namespace MinimalLambda.Host.Options; internal class EnvelopeOptionsPostConfiguration : IPostConfigureOptions { diff --git a/src/AwsLambda.Host/Core/Options/HostOptionsPostConfiguration.cs b/src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs similarity index 95% rename from src/AwsLambda.Host/Core/Options/HostOptionsPostConfiguration.cs rename to src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs index 10c327c3..f4a7a803 100644 --- a/src/AwsLambda.Host/Core/Options/HostOptionsPostConfiguration.cs +++ b/src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Options; +namespace MinimalLambda.Host.Options; internal class HostOptionsPostConfiguration : IPostConfigureOptions { diff --git a/src/AwsLambda.Host/Core/Options/LambdaApplicationOptions.cs b/src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs similarity index 99% rename from src/AwsLambda.Host/Core/Options/LambdaApplicationOptions.cs rename to src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs index 9b08b475..7e152015 100644 --- a/src/AwsLambda.Host/Core/Options/LambdaApplicationOptions.cs +++ b/src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs @@ -10,7 +10,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Host.Builder; /// Options for configuring the . public class LambdaApplicationOptions diff --git a/src/AwsLambda.Host/Core/Options/LambdaHostOptions.cs b/src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs similarity index 98% rename from src/AwsLambda.Host/Core/Options/LambdaHostOptions.cs rename to src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs index c846a0ae..c872c9a5 100644 --- a/src/AwsLambda.Host/Core/Options/LambdaHostOptions.cs +++ b/src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.RuntimeSupport.Bootstrap; -using AwsLambda.Host.Builder.Extensions; +using MinimalLambda.Host.Builder.Extensions; -namespace AwsLambda.Host.Options; +namespace MinimalLambda.Host.Options; /// Options for configuring Lambda hosting behavior. public class LambdaHostOptions diff --git a/src/AwsLambda.Host/Core/Options/LambdaHostedServiceOptions.cs b/src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs similarity index 88% rename from src/AwsLambda.Host/Core/Options/LambdaHostedServiceOptions.cs rename to src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs index 1cc002bc..b04ce2cf 100644 --- a/src/AwsLambda.Host/Core/Options/LambdaHostedServiceOptions.cs +++ b/src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Options; +namespace MinimalLambda.Host.Options; internal class LambdaHostedServiceOptions { diff --git a/src/AwsLambda.Host/Core/Options/ShutdownDuration.cs b/src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs similarity index 96% rename from src/AwsLambda.Host/Core/Options/ShutdownDuration.cs rename to src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs index 1b426e4d..0c8ca31a 100644 --- a/src/AwsLambda.Host/Core/Options/ShutdownDuration.cs +++ b/src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Options; +namespace MinimalLambda.Host.Options; /// /// Provides predetermined timeout durations for AWS Lambda shutdown based on extension diff --git a/src/MinimalLambda.Core/GlobalUsings.cs b/src/MinimalLambda.Core/GlobalUsings.cs new file mode 100644 index 00000000..7c5546fb --- /dev/null +++ b/src/MinimalLambda.Core/GlobalUsings.cs @@ -0,0 +1,4 @@ +global using MinimalLambda.Host.Builder; +global using MinimalLambda.Host.Core; +global using MinimalLambda.Host.Options; +global using MinimalLambda.Host.Runtime; diff --git a/src/AwsLambda.Host/AwsLambda.Host.csproj b/src/MinimalLambda.Core/MinimalLambda.Core.csproj similarity index 86% rename from src/AwsLambda.Host/AwsLambda.Host.csproj rename to src/MinimalLambda.Core/MinimalLambda.Core.csproj index a479e9c5..5abf60b3 100644 --- a/src/AwsLambda.Host/AwsLambda.Host.csproj +++ b/src/MinimalLambda.Core/MinimalLambda.Core.csproj @@ -8,9 +8,10 @@ true true - AwsLambda.Host + MinimalLambda.Core .NET Host for AWS Lambda README.md + MinimalLambda.Host @@ -33,9 +34,9 @@ - + diff --git a/src/AwsLambda.Host/Properties/AssemblyInfo.cs b/src/MinimalLambda.Core/Properties/AssemblyInfo.cs similarity index 62% rename from src/AwsLambda.Host/Properties/AssemblyInfo.cs rename to src/MinimalLambda.Core/Properties/AssemblyInfo.cs index aae028b7..e4318b15 100644 --- a/src/AwsLambda.Host/Properties/AssemblyInfo.cs +++ b/src/MinimalLambda.Core/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo("AwsLambda.Host.UnitTests")] +[assembly: InternalsVisibleTo("MinimalLambda.UnitTests")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] diff --git a/src/AwsLambda.Host/README.md b/src/MinimalLambda.Core/README.md similarity index 100% rename from src/AwsLambda.Host/README.md rename to src/MinimalLambda.Core/README.md diff --git a/src/AwsLambda.Host/Runtime/ILambdaBootstrapOrchestrator.cs b/src/MinimalLambda.Core/Runtime/ILambdaBootstrapOrchestrator.cs similarity index 97% rename from src/AwsLambda.Host/Runtime/ILambdaBootstrapOrchestrator.cs rename to src/MinimalLambda.Core/Runtime/ILambdaBootstrapOrchestrator.cs index 85b95951..ea6242f0 100644 --- a/src/AwsLambda.Host/Runtime/ILambdaBootstrapOrchestrator.cs +++ b/src/MinimalLambda.Core/Runtime/ILambdaBootstrapOrchestrator.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Runtime; +namespace MinimalLambda.Host.Runtime; /// /// Responsible for orchestrating the AWS Lambda bootstrap. Abstracts away AWS SDK complexity diff --git a/src/AwsLambda.Host/Runtime/ILambdaHandlerFactory.cs b/src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs similarity index 95% rename from src/AwsLambda.Host/Runtime/ILambdaHandlerFactory.cs rename to src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs index cb1f3621..28c5ac78 100644 --- a/src/AwsLambda.Host/Runtime/ILambdaHandlerFactory.cs +++ b/src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Runtime; +namespace MinimalLambda.Host.Runtime; /// /// Responsible for creating and composing the Lambda handler. Handles middleware pipeline diff --git a/src/AwsLambda.Host/Runtime/LambdaBootstrapAdapter.cs b/src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs similarity index 98% rename from src/AwsLambda.Host/Runtime/LambdaBootstrapAdapter.cs rename to src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs index 6dc13276..26a73630 100644 --- a/src/AwsLambda.Host/Runtime/LambdaBootstrapAdapter.cs +++ b/src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Runtime; +namespace MinimalLambda.Host.Runtime; /// /// Adapts AWS Lambda bootstrap configuration and execution. This class abstracts away AWS SDK diff --git a/src/AwsLambda.Host/Runtime/LambdaHandlerComposer.cs b/src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs similarity index 99% rename from src/AwsLambda.Host/Runtime/LambdaHandlerComposer.cs rename to src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs index b1c1ec9c..8cdab2ba 100644 --- a/src/AwsLambda.Host/Runtime/LambdaHandlerComposer.cs +++ b/src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Runtime; +namespace MinimalLambda.Host.Runtime; /// Builds and composes the Lambda invocation pipeline into a request handler. internal sealed class LambdaHandlerComposer : ILambdaHandlerFactory diff --git a/src/AwsLambda.Host/Runtime/LambdaHostedService.cs b/src/MinimalLambda.Core/Runtime/LambdaHostedService.cs similarity index 99% rename from src/AwsLambda.Host/Runtime/LambdaHostedService.cs rename to src/MinimalLambda.Core/Runtime/LambdaHostedService.cs index 15c8530d..a36d2358 100644 --- a/src/AwsLambda.Host/Runtime/LambdaHostedService.cs +++ b/src/MinimalLambda.Core/Runtime/LambdaHostedService.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.Runtime; +namespace MinimalLambda.Host.Runtime; /// /// Orchestrates the Lambda hosting environment lifecycle. Delegates specific concerns to diff --git a/src/AwsLambda.Host/build/AwsLambda.Host.targets b/src/MinimalLambda.Core/build/AwsLambda.Host.targets similarity index 100% rename from src/AwsLambda.Host/build/AwsLambda.Host.targets rename to src/MinimalLambda.Core/build/AwsLambda.Host.targets diff --git a/src/AwsLambda.Host.OpenTelemetry/LambdaOpenTelemetryAdapters.cs b/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs similarity index 100% rename from src/AwsLambda.Host.OpenTelemetry/LambdaOpenTelemetryAdapters.cs rename to src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs diff --git a/src/AwsLambda.Host.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs b/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs similarity index 100% rename from src/AwsLambda.Host.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs rename to src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs diff --git a/src/AwsLambda.Host.OpenTelemetry/AwsLambda.Host.OpenTelemetry.csproj b/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj similarity index 83% rename from src/AwsLambda.Host.OpenTelemetry/AwsLambda.Host.OpenTelemetry.csproj rename to src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj index a91244fa..667a954c 100644 --- a/src/AwsLambda.Host.OpenTelemetry/AwsLambda.Host.OpenTelemetry.csproj +++ b/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj @@ -8,12 +8,12 @@ true true - AwsLambda.Host.OpenTelemetry + MinimalLambda.OpenTelemetry OpenTelemetry for .NET Host for AWS Lambda README.md - + diff --git a/src/AwsLambda.Host.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs b/src/MinimalLambda.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs similarity index 98% rename from src/AwsLambda.Host.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs rename to src/MinimalLambda.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs index c82452f2..16b02a71 100644 --- a/src/AwsLambda.Host.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs +++ b/src/MinimalLambda.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs @@ -12,7 +12,7 @@ namespace AwsLambda.Host.Builder; /// public static class OnShutdownOpenTelemetryExtensions { - private const string LogCategory = "AwsLambda.Host.OpenTelemetry"; + private const string LogCategory = "MinimalLambda.OpenTelemetry"; extension(ILambdaOnShutdownBuilder application) { diff --git a/src/AwsLambda.Host.OpenTelemetry/README.md b/src/MinimalLambda.OpenTelemetry/README.md similarity index 100% rename from src/AwsLambda.Host.OpenTelemetry/README.md rename to src/MinimalLambda.OpenTelemetry/README.md diff --git a/src/AwsLambda.Host.SourceGenerators/AnalyzerReleases.Shipped.md b/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Shipped.md similarity index 100% rename from src/AwsLambda.Host.SourceGenerators/AnalyzerReleases.Shipped.md rename to src/MinimalLambda.SourceGenerators/AnalyzerReleases.Shipped.md diff --git a/src/AwsLambda.Host.SourceGenerators/AnalyzerReleases.Unshipped.md b/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Unshipped.md similarity index 100% rename from src/AwsLambda.Host.SourceGenerators/AnalyzerReleases.Unshipped.md rename to src/MinimalLambda.SourceGenerators/AnalyzerReleases.Unshipped.md diff --git a/src/AwsLambda.Host.SourceGenerators/Diagnostics/DiagnosticGenerator.cs b/src/MinimalLambda.SourceGenerators/Diagnostics/DiagnosticGenerator.cs similarity index 94% rename from src/AwsLambda.Host.SourceGenerators/Diagnostics/DiagnosticGenerator.cs rename to src/MinimalLambda.SourceGenerators/Diagnostics/DiagnosticGenerator.cs index 3af20531..703aef3a 100644 --- a/src/AwsLambda.Host.SourceGenerators/Diagnostics/DiagnosticGenerator.cs +++ b/src/MinimalLambda.SourceGenerators/Diagnostics/DiagnosticGenerator.cs @@ -1,10 +1,10 @@ using System.Collections.Generic; using System.Linq; -using AwsLambda.Host.SourceGenerators.Models; -using AwsLambda.Host.SourceGenerators.Types; using Microsoft.CodeAnalysis; +using MinimalLambda.SourceGenerators.Models; +using MinimalLambda.SourceGenerators.Types; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class DiagnosticGenerator { diff --git a/src/AwsLambda.Host.SourceGenerators/Diagnostics/Diagnostics.cs b/src/MinimalLambda.SourceGenerators/Diagnostics/Diagnostics.cs similarity index 96% rename from src/AwsLambda.Host.SourceGenerators/Diagnostics/Diagnostics.cs rename to src/MinimalLambda.SourceGenerators/Diagnostics/Diagnostics.cs index 09a11819..c8cea47b 100644 --- a/src/AwsLambda.Host.SourceGenerators/Diagnostics/Diagnostics.cs +++ b/src/MinimalLambda.SourceGenerators/Diagnostics/Diagnostics.cs @@ -1,6 +1,6 @@ using Microsoft.CodeAnalysis; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class Diagnostics { diff --git a/src/AwsLambda.Host.SourceGenerators/Extensions/DelegateInfoExtensions.cs b/src/MinimalLambda.SourceGenerators/Extensions/DelegateInfoExtensions.cs similarity index 93% rename from src/AwsLambda.Host.SourceGenerators/Extensions/DelegateInfoExtensions.cs rename to src/MinimalLambda.SourceGenerators/Extensions/DelegateInfoExtensions.cs index ef2c7838..62c2d14b 100644 --- a/src/AwsLambda.Host.SourceGenerators/Extensions/DelegateInfoExtensions.cs +++ b/src/MinimalLambda.SourceGenerators/Extensions/DelegateInfoExtensions.cs @@ -1,8 +1,8 @@ using System.Linq; using System.Text; -using AwsLambda.Host.SourceGenerators.Models; +using MinimalLambda.SourceGenerators.Models; -namespace AwsLambda.Host.SourceGenerators.Extensions; +namespace MinimalLambda.SourceGenerators.Extensions; internal static class DelegateInfoExtensions { diff --git a/src/AwsLambda.Host.SourceGenerators/Extensions/SyntaxExtensions.cs b/src/MinimalLambda.SourceGenerators/Extensions/SyntaxExtensions.cs similarity index 94% rename from src/AwsLambda.Host.SourceGenerators/Extensions/SyntaxExtensions.cs rename to src/MinimalLambda.SourceGenerators/Extensions/SyntaxExtensions.cs index 0be4dd6d..79ac3c52 100644 --- a/src/AwsLambda.Host.SourceGenerators/Extensions/SyntaxExtensions.cs +++ b/src/MinimalLambda.SourceGenerators/Extensions/SyntaxExtensions.cs @@ -2,7 +2,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class SyntaxExtensions { diff --git a/src/AwsLambda.Host.SourceGenerators/Extensions/TypeExtractorExtensions.cs b/src/MinimalLambda.SourceGenerators/Extensions/TypeExtractorExtensions.cs similarity index 92% rename from src/AwsLambda.Host.SourceGenerators/Extensions/TypeExtractorExtensions.cs rename to src/MinimalLambda.SourceGenerators/Extensions/TypeExtractorExtensions.cs index cae38984..36a218e6 100644 --- a/src/AwsLambda.Host.SourceGenerators/Extensions/TypeExtractorExtensions.cs +++ b/src/MinimalLambda.SourceGenerators/Extensions/TypeExtractorExtensions.cs @@ -1,7 +1,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; -namespace AwsLambda.Host.SourceGenerators.Extensions; +namespace MinimalLambda.SourceGenerators.Extensions; internal static class TypeExtractorExtensions { diff --git a/src/AwsLambda.Host.SourceGenerators/Extensions/TypeSymbolExtensions.cs b/src/MinimalLambda.SourceGenerators/Extensions/TypeSymbolExtensions.cs similarity index 92% rename from src/AwsLambda.Host.SourceGenerators/Extensions/TypeSymbolExtensions.cs rename to src/MinimalLambda.SourceGenerators/Extensions/TypeSymbolExtensions.cs index c7e77fb0..5dec2f61 100644 --- a/src/AwsLambda.Host.SourceGenerators/Extensions/TypeSymbolExtensions.cs +++ b/src/MinimalLambda.SourceGenerators/Extensions/TypeSymbolExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.CodeAnalysis; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class TypeSymbolExtensions { diff --git a/src/AwsLambda.Host.SourceGenerators/GeneratorConstants.cs b/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs similarity index 97% rename from src/AwsLambda.Host.SourceGenerators/GeneratorConstants.cs rename to src/MinimalLambda.SourceGenerators/GeneratorConstants.cs index 96cebe0b..69ccd7d4 100644 --- a/src/AwsLambda.Host.SourceGenerators/GeneratorConstants.cs +++ b/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; /// Constants for common .NET and AWS Lambda types used in source generation. internal static class TypeConstants diff --git a/src/AwsLambda.Host.SourceGenerators/MapHandlerIncrementalGenerator.cs b/src/MinimalLambda.SourceGenerators/MapHandlerIncrementalGenerator.cs similarity index 97% rename from src/AwsLambda.Host.SourceGenerators/MapHandlerIncrementalGenerator.cs rename to src/MinimalLambda.SourceGenerators/MapHandlerIncrementalGenerator.cs index e94020cb..7484b1c1 100644 --- a/src/AwsLambda.Host.SourceGenerators/MapHandlerIncrementalGenerator.cs +++ b/src/MinimalLambda.SourceGenerators/MapHandlerIncrementalGenerator.cs @@ -1,10 +1,10 @@ using System.Reflection; -using AwsLambda.Host.SourceGenerators.Models; -using AwsLambda.Host.SourceGenerators.Types; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; +using MinimalLambda.SourceGenerators.Models; +using MinimalLambda.SourceGenerators.Types; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; [Generator] public class MapHandlerIncrementalGenerator : IIncrementalGenerator diff --git a/src/AwsLambda.Host.SourceGenerators/AwsLambda.Host.SourceGenerators.csproj b/src/MinimalLambda.SourceGenerators/MinimalLambda.SourceGenerators.csproj similarity index 100% rename from src/AwsLambda.Host.SourceGenerators/AwsLambda.Host.SourceGenerators.csproj rename to src/MinimalLambda.SourceGenerators/MinimalLambda.SourceGenerators.csproj diff --git a/src/AwsLambda.Host.SourceGenerators/Models/ArgumentInfo.cs b/src/MinimalLambda.SourceGenerators/Models/ArgumentInfo.cs similarity index 60% rename from src/AwsLambda.Host.SourceGenerators/Models/ArgumentInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/ArgumentInfo.cs index b824c1d9..3b1c1f17 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/ArgumentInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/ArgumentInfo.cs @@ -1,3 +1,3 @@ -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct ArgumentInfo(string? Type, string? Name); diff --git a/src/AwsLambda.Host.SourceGenerators/Models/CompilationInfo.cs b/src/MinimalLambda.SourceGenerators/Models/CompilationInfo.cs similarity index 80% rename from src/AwsLambda.Host.SourceGenerators/Models/CompilationInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/CompilationInfo.cs index 3964f44d..871699c8 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/CompilationInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/CompilationInfo.cs @@ -1,6 +1,6 @@ -using AwsLambda.Host.SourceGenerators.Types; +using MinimalLambda.SourceGenerators.Types; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct CompilationInfo( EquatableArray MapHandlerInvocationInfos, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/DelegateInfo.cs b/src/MinimalLambda.SourceGenerators/Models/DelegateInfo.cs similarity index 91% rename from src/AwsLambda.Host.SourceGenerators/Models/DelegateInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/DelegateInfo.cs index 3127865e..55c0a5ac 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/DelegateInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/DelegateInfo.cs @@ -1,7 +1,7 @@ using System.Linq; -using AwsLambda.Host.SourceGenerators.Types; +using MinimalLambda.SourceGenerators.Types; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct DelegateInfo( EquatableArray Parameters, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/HigherOrderMethodInfo.cs b/src/MinimalLambda.SourceGenerators/Models/HigherOrderMethodInfo.cs similarity index 84% rename from src/AwsLambda.Host.SourceGenerators/Models/HigherOrderMethodInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/HigherOrderMethodInfo.cs index 0e58a401..5a34ffa9 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/HigherOrderMethodInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/HigherOrderMethodInfo.cs @@ -1,6 +1,6 @@ using System.Collections.Immutable; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct HigherOrderMethodInfo( string Name, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/InterceptableLocationInfo.cs b/src/MinimalLambda.SourceGenerators/Models/InterceptableLocationInfo.cs similarity index 89% rename from src/AwsLambda.Host.SourceGenerators/Models/InterceptableLocationInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/InterceptableLocationInfo.cs index 9cd0365f..0ecd39eb 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/InterceptableLocationInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/InterceptableLocationInfo.cs @@ -1,6 +1,6 @@ using Microsoft.CodeAnalysis.CSharp; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct InterceptableLocationInfo( int Version, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/KeyedServiceKeyInfo.cs b/src/MinimalLambda.SourceGenerators/Models/KeyedServiceKeyInfo.cs similarity index 96% rename from src/AwsLambda.Host.SourceGenerators/Models/KeyedServiceKeyInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/KeyedServiceKeyInfo.cs index d4eeb9d7..5a0bde68 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/KeyedServiceKeyInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/KeyedServiceKeyInfo.cs @@ -1,9 +1,9 @@ -using AwsLambda.Host.SourceGenerators.Extensions; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using MinimalLambda.SourceGenerators.Extensions; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct KeyedServiceKeyInfo( string? DisplayValue, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/LocationInfo.cs b/src/MinimalLambda.SourceGenerators/Models/LocationInfo.cs similarity index 94% rename from src/AwsLambda.Host.SourceGenerators/Models/LocationInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/LocationInfo.cs index e1e3019b..3365f656 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/LocationInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/LocationInfo.cs @@ -2,7 +2,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct LocationInfo( string FilePath, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/ParameterInfo.cs b/src/MinimalLambda.SourceGenerators/Models/ParameterInfo.cs similarity index 98% rename from src/AwsLambda.Host.SourceGenerators/Models/ParameterInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/ParameterInfo.cs index 1666b11d..c2f82cb9 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/ParameterInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/ParameterInfo.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using Microsoft.CodeAnalysis; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct ParameterInfo( string Name, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/ParameterSource.cs b/src/MinimalLambda.SourceGenerators/Models/ParameterSource.cs similarity index 69% rename from src/AwsLambda.Host.SourceGenerators/Models/ParameterSource.cs rename to src/MinimalLambda.SourceGenerators/Models/ParameterSource.cs index a885f2fc..1aad9519 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/ParameterSource.cs +++ b/src/MinimalLambda.SourceGenerators/Models/ParameterSource.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal enum ParameterSource { diff --git a/src/AwsLambda.Host.SourceGenerators/Models/SimpleMethodInfo.cs b/src/MinimalLambda.SourceGenerators/Models/SimpleMethodInfo.cs similarity index 76% rename from src/AwsLambda.Host.SourceGenerators/Models/SimpleMethodInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/SimpleMethodInfo.cs index b0650230..082379fc 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/SimpleMethodInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/SimpleMethodInfo.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; internal readonly record struct SimpleMethodInfo( string Name, diff --git a/src/AwsLambda.Host.SourceGenerators/Models/TypeInfo.cs b/src/MinimalLambda.SourceGenerators/Models/TypeInfo.cs similarity index 95% rename from src/AwsLambda.Host.SourceGenerators/Models/TypeInfo.cs rename to src/MinimalLambda.SourceGenerators/Models/TypeInfo.cs index efe1b538..59d43528 100644 --- a/src/AwsLambda.Host.SourceGenerators/Models/TypeInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Models/TypeInfo.cs @@ -1,10 +1,10 @@ using System.Collections.Immutable; using System.Linq; -using AwsLambda.Host.SourceGenerators.Extensions; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; +using MinimalLambda.SourceGenerators.Extensions; -namespace AwsLambda.Host.SourceGenerators.Models; +namespace MinimalLambda.SourceGenerators.Models; /// Represents the information associated with a named type in C# source code. internal readonly record struct TypeInfo( diff --git a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/CommonSources.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/CommonSources.cs similarity index 89% rename from src/AwsLambda.Host.SourceGenerators/OutputGenerators/CommonSources.cs rename to src/MinimalLambda.SourceGenerators/OutputGenerators/CommonSources.cs index 3c177bb2..45d3c845 100644 --- a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/CommonSources.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/CommonSources.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class CommonSources { diff --git a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/GenericHandlerSources.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/GenericHandlerSources.cs similarity index 97% rename from src/AwsLambda.Host.SourceGenerators/OutputGenerators/GenericHandlerSources.cs rename to src/MinimalLambda.SourceGenerators/OutputGenerators/GenericHandlerSources.cs index 533b2c8e..cb78475f 100644 --- a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/GenericHandlerSources.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/GenericHandlerSources.cs @@ -1,9 +1,9 @@ using System.Linq; -using AwsLambda.Host.SourceGenerators.Extensions; -using AwsLambda.Host.SourceGenerators.Models; -using AwsLambda.Host.SourceGenerators.Types; +using MinimalLambda.SourceGenerators.Extensions; +using MinimalLambda.SourceGenerators.Models; +using MinimalLambda.SourceGenerators.Types; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class GenericHandlerSources { diff --git a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs similarity index 96% rename from src/AwsLambda.Host.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs rename to src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs index 94befc1c..b0578109 100644 --- a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/LambdaHostOutputGenerator.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using System.Linq; -using AwsLambda.Host.SourceGenerators.Models; using Microsoft.CodeAnalysis; +using MinimalLambda.SourceGenerators.Models; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class LambdaHostOutputGenerator { diff --git a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/MapHandlerSources.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/MapHandlerSources.cs similarity index 96% rename from src/AwsLambda.Host.SourceGenerators/OutputGenerators/MapHandlerSources.cs rename to src/MinimalLambda.SourceGenerators/OutputGenerators/MapHandlerSources.cs index 472795b4..323461f3 100644 --- a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/MapHandlerSources.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/MapHandlerSources.cs @@ -1,9 +1,9 @@ using System.Linq; -using AwsLambda.Host.SourceGenerators.Extensions; -using AwsLambda.Host.SourceGenerators.Models; -using AwsLambda.Host.SourceGenerators.Types; +using MinimalLambda.SourceGenerators.Extensions; +using MinimalLambda.SourceGenerators.Models; +using MinimalLambda.SourceGenerators.Types; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class MapHandlerSources { diff --git a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/OpenTelemetrySources.cs b/src/MinimalLambda.SourceGenerators/OutputGenerators/OpenTelemetrySources.cs similarity index 89% rename from src/AwsLambda.Host.SourceGenerators/OutputGenerators/OpenTelemetrySources.cs rename to src/MinimalLambda.SourceGenerators/OutputGenerators/OpenTelemetrySources.cs index c1ce57c7..7061f00b 100644 --- a/src/AwsLambda.Host.SourceGenerators/OutputGenerators/OpenTelemetrySources.cs +++ b/src/MinimalLambda.SourceGenerators/OutputGenerators/OpenTelemetrySources.cs @@ -1,8 +1,8 @@ using System.Linq; -using AwsLambda.Host.SourceGenerators.Models; -using AwsLambda.Host.SourceGenerators.Types; +using MinimalLambda.SourceGenerators.Models; +using MinimalLambda.SourceGenerators.Types; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class OpenTelemetrySources { diff --git a/src/AwsLambda.Host.SourceGenerators/Properties/AssemblyInfo.cs b/src/MinimalLambda.SourceGenerators/Properties/AssemblyInfo.cs similarity index 56% rename from src/AwsLambda.Host.SourceGenerators/Properties/AssemblyInfo.cs rename to src/MinimalLambda.SourceGenerators/Properties/AssemblyInfo.cs index 20b7ecfa..e6be45eb 100644 --- a/src/AwsLambda.Host.SourceGenerators/Properties/AssemblyInfo.cs +++ b/src/MinimalLambda.SourceGenerators/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo("AwsLambda.Host.SourceGenerators.UnitTests")] +[assembly: InternalsVisibleTo("MinimalLambda.SourceGenerators.UnitTests")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] diff --git a/src/AwsLambda.Host.SourceGenerators/Properties/launchSettings.json b/src/MinimalLambda.SourceGenerators/Properties/launchSettings.json similarity index 100% rename from src/AwsLambda.Host.SourceGenerators/Properties/launchSettings.json rename to src/MinimalLambda.SourceGenerators/Properties/launchSettings.json diff --git a/src/AwsLambda.Host.SourceGenerators/README.md b/src/MinimalLambda.SourceGenerators/README.md similarity index 100% rename from src/AwsLambda.Host.SourceGenerators/README.md rename to src/MinimalLambda.SourceGenerators/README.md diff --git a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs similarity index 94% rename from src/AwsLambda.Host.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs rename to src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs index 077852a3..c33ac21d 100644 --- a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs @@ -3,16 +3,18 @@ using System.Collections.Immutable; using System.Linq; using System.Threading; -using AwsLambda.Host.SourceGenerators.Extensions; -using AwsLambda.Host.SourceGenerators.Models; -using AwsLambda.Host.SourceGenerators.Types; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Operations; -using TypeInfo = AwsLambda.Host.SourceGenerators.Models.TypeInfo; +using MinimalLambda.SourceGenerators.Extensions; +using MinimalLambda.SourceGenerators.Models; +using MinimalLambda.SourceGenerators.Types; +using TypeInfo = MinimalLambda.SourceGenerators.Models.TypeInfo; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; + +using TypeInfo = TypeInfo; internal static class HandlerInfoExtractor { @@ -211,7 +213,7 @@ CastExpressionSyntax castExpression (castParam, originalParam) => originalParam with { - TypeInfo = TypeInfo.Create(castParam.Type), + TypeInfo = Microsoft.CodeAnalysis.TypeInfo.Create(castParam.Type), LocationInfo = LocationInfo.CreateFrom(castParam), } ) @@ -226,7 +228,7 @@ originalParam with && (invokeMethod.IsAsync || invokeMethod.ReturnType.IsTypeAwaitable()); // get response type TypeInfo - var responseTypeInfo = TypeInfo.Create(invokeMethod.ReturnType); + var responseTypeInfo = Microsoft.CodeAnalysis.TypeInfo.Create(invokeMethod.ReturnType); return new DelegateInfo( updatedParameters, @@ -268,7 +270,7 @@ CancellationToken cancellationToken && (methodSymbol.IsAsync || methodSymbol.ReturnType.IsTypeAwaitable()); // get response type TypeInfo - var responseTypeInfo = TypeInfo.Create(methodSymbol.ReturnType); + var responseTypeInfo = Microsoft.CodeAnalysis.TypeInfo.Create(methodSymbol.ReturnType); return new DelegateInfo(parameters, isAwaitable, methodSymbol.IsAsync, responseTypeInfo); } @@ -337,7 +339,7 @@ CancellationToken cancellationToken // get response type TypeInfo TypeInfo? responseTypeInfo = returnType is not null - ? TypeInfo.Create(returnType, returnTypeSyntax) + ? Microsoft.CodeAnalysis.TypeInfo.Create(returnType, returnTypeSyntax) : null; // determine if the lambda is async by checking kind @@ -365,7 +367,7 @@ CancellationToken cancellationToken { FullyQualifiedType = fullResponseType, } - : TypeInfo.CreateFullyQualifiedType(fullResponseType); + : Microsoft.CodeAnalysis.TypeInfo.CreateFullyQualifiedType(fullResponseType); // determine if the delegate is returning awaitable value var isAwaitable = diff --git a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs similarity index 95% rename from src/AwsLambda.Host.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs rename to src/MinimalLambda.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs index 8cc95951..4d2b1fdd 100644 --- a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs @@ -1,11 +1,11 @@ using System.Threading; -using AwsLambda.Host.SourceGenerators.Models; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Operations; +using MinimalLambda.SourceGenerators.Models; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class LambdaApplicationBuilderBuildSyntaxProvider { diff --git a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/MapHandlerSyntaxProvider.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/MapHandlerSyntaxProvider.cs similarity index 85% rename from src/AwsLambda.Host.SourceGenerators/SyntaxProviders/MapHandlerSyntaxProvider.cs rename to src/MinimalLambda.SourceGenerators/SyntaxProviders/MapHandlerSyntaxProvider.cs index c280754c..152fbf81 100644 --- a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/MapHandlerSyntaxProvider.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/MapHandlerSyntaxProvider.cs @@ -1,8 +1,8 @@ using System.Threading; -using AwsLambda.Host.SourceGenerators.Models; using Microsoft.CodeAnalysis; +using MinimalLambda.SourceGenerators.Models; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class MapHandlerSyntaxProvider { diff --git a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/OnInitSyntaxProvider.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/OnInitSyntaxProvider.cs similarity index 92% rename from src/AwsLambda.Host.SourceGenerators/SyntaxProviders/OnInitSyntaxProvider.cs rename to src/MinimalLambda.SourceGenerators/SyntaxProviders/OnInitSyntaxProvider.cs index cf8044c9..c15e97ad 100644 --- a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/OnInitSyntaxProvider.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/OnInitSyntaxProvider.cs @@ -1,8 +1,8 @@ using System.Threading; -using AwsLambda.Host.SourceGenerators.Models; using Microsoft.CodeAnalysis; +using MinimalLambda.SourceGenerators.Models; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class OnInitSyntaxProvider { diff --git a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/OnShutdownSyntaxProvider.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/OnShutdownSyntaxProvider.cs similarity index 92% rename from src/AwsLambda.Host.SourceGenerators/SyntaxProviders/OnShutdownSyntaxProvider.cs rename to src/MinimalLambda.SourceGenerators/SyntaxProviders/OnShutdownSyntaxProvider.cs index 556aed19..b96bf94b 100644 --- a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/OnShutdownSyntaxProvider.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/OnShutdownSyntaxProvider.cs @@ -1,8 +1,8 @@ using System.Threading; -using AwsLambda.Host.SourceGenerators.Models; using Microsoft.CodeAnalysis; +using MinimalLambda.SourceGenerators.Models; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class OnShutdownSyntaxProvider { diff --git a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/UseOpenTelemetryTracingSyntaxProvider.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/UseOpenTelemetryTracingSyntaxProvider.cs similarity index 92% rename from src/AwsLambda.Host.SourceGenerators/SyntaxProviders/UseOpenTelemetryTracingSyntaxProvider.cs rename to src/MinimalLambda.SourceGenerators/SyntaxProviders/UseOpenTelemetryTracingSyntaxProvider.cs index 5d77e4bd..1ab88a45 100644 --- a/src/AwsLambda.Host.SourceGenerators/SyntaxProviders/UseOpenTelemetryTracingSyntaxProvider.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/UseOpenTelemetryTracingSyntaxProvider.cs @@ -1,11 +1,11 @@ using System.Threading; -using AwsLambda.Host.SourceGenerators.Models; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Operations; +using MinimalLambda.SourceGenerators.Models; -namespace AwsLambda.Host.SourceGenerators; +namespace MinimalLambda.SourceGenerators; internal static class UseOpenTelemetryTracingSyntaxProvider { @@ -35,8 +35,7 @@ is IInvocationOperation }, }, } targetOperation - && targetOperation.TargetMethod.ContainingAssembly.Name - == "AwsLambda.Host.OpenTelemetry" + && targetOperation.TargetMethod.ContainingAssembly.Name == "MinimalLambda.OpenTelemetry" ) { var interceptableLocation = context.SemanticModel.GetInterceptableLocation( diff --git a/src/AwsLambda.Host.SourceGenerators/Types/EquatableArray.cs b/src/MinimalLambda.SourceGenerators/Types/EquatableArray.cs similarity index 98% rename from src/AwsLambda.Host.SourceGenerators/Types/EquatableArray.cs rename to src/MinimalLambda.SourceGenerators/Types/EquatableArray.cs index 28afe924..07e75081 100644 --- a/src/AwsLambda.Host.SourceGenerators/Types/EquatableArray.cs +++ b/src/MinimalLambda.SourceGenerators/Types/EquatableArray.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using System.Collections.Immutable; -namespace AwsLambda.Host.SourceGenerators.Types; +namespace MinimalLambda.SourceGenerators.Types; /// /// An immutable, equatable array. This is equivalent to but with diff --git a/src/AwsLambda.Host.SourceGenerators/Types/EquatableArrayExtensions.cs b/src/MinimalLambda.SourceGenerators/Types/EquatableArrayExtensions.cs similarity index 84% rename from src/AwsLambda.Host.SourceGenerators/Types/EquatableArrayExtensions.cs rename to src/MinimalLambda.SourceGenerators/Types/EquatableArrayExtensions.cs index 1b964f37..6872bbdc 100644 --- a/src/AwsLambda.Host.SourceGenerators/Types/EquatableArrayExtensions.cs +++ b/src/MinimalLambda.SourceGenerators/Types/EquatableArrayExtensions.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace AwsLambda.Host.SourceGenerators.Types; +namespace MinimalLambda.SourceGenerators.Types; internal static class EquatableArrayExtensions { diff --git a/src/AwsLambda.Host.SourceGenerators/Types/HashCode.cs b/src/MinimalLambda.SourceGenerators/Types/HashCode.cs similarity index 99% rename from src/AwsLambda.Host.SourceGenerators/Types/HashCode.cs rename to src/MinimalLambda.SourceGenerators/Types/HashCode.cs index 7d620f4e..94be6873 100644 --- a/src/AwsLambda.Host.SourceGenerators/Types/HashCode.cs +++ b/src/MinimalLambda.SourceGenerators/Types/HashCode.cs @@ -3,7 +3,7 @@ using System.ComponentModel; using System.Runtime.CompilerServices; -namespace AwsLambda.Host.SourceGenerators.Types; +namespace MinimalLambda.SourceGenerators.Types; /// Polyfill for .NET 6 HashCode internal struct HashCode diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs similarity index 97% rename from tests/AwsLambda.Host.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs index 3178c663..8cf123ea 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs @@ -3,12 +3,12 @@ using Amazon.Lambda.ApplicationLoadBalancerEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.Alb; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.Alb; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(AlbRequestEnvelope<>))] public class AlbRequestEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs similarity index 97% rename from tests/AwsLambda.Host.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs index ed6e1b97..484b8b35 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs @@ -3,12 +3,12 @@ using Amazon.Lambda.ApplicationLoadBalancerEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.Alb; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.Alb; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(AlbResponseEnvelope<>))] public class AlbResponseEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs index 361f2237..2de1375c 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs @@ -3,12 +3,12 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.ApiGateway; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.ApiGateway; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(ApiGatewayRequestEnvelope<>))] public class ApiGatewayRequestEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs index ff64d20a..e28725e9 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs @@ -3,12 +3,12 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.ApiGateway; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.ApiGateway; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(ApiGatewayResponseEnvelope<>))] public class ApiGatewayResponseEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs index e6abaff4..eca50d42 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs @@ -3,12 +3,12 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.ApiGateway; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.ApiGateway; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(ApiGatewayV2RequestEnvelope<>))] public class ApiGatewayV2RequestEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs index 70c32099..3bb12df3 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs @@ -3,12 +3,12 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.ApiGateway; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.ApiGateway; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(ApiGatewayV2ResponseEnvelope<>))] public class ApiGatewayV2ResponseEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs similarity index 99% rename from tests/AwsLambda.Host.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs index 5c1237f8..321dc007 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs @@ -5,12 +5,12 @@ using Amazon.Lambda.CloudWatchLogsEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.CloudWatchLogs; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.CloudWatchLogs; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(CloudWatchLogsEnvelope<>))] [TestSubject(typeof(CloudWatchLogsEnvelope))] diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/KafkaEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KafkaEnvelopeTests.cs similarity index 99% rename from tests/AwsLambda.Host.Envelopes.UnitTests/KafkaEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/KafkaEnvelopeTests.cs index 01e60564..1cc1fedf 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/KafkaEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KafkaEnvelopeTests.cs @@ -9,7 +9,7 @@ using JetBrains.Annotations; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(KafkaEnvelope<>))] public class KafkaEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/KinesisEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KinesisEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/KinesisEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/KinesisEnvelopeTests.cs index 9ca78a5a..bcda47e6 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/KinesisEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KinesisEnvelopeTests.cs @@ -4,12 +4,12 @@ using Amazon.Lambda.KinesisEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.Kinesis; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.Kinesis; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(KinesisEnvelope<>))] public class KinesisEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs index 1d02e60e..851bfb53 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs @@ -4,12 +4,12 @@ using Amazon.Lambda.KinesisFirehoseEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.KinesisFirehose; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.KinesisFirehose; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(KinesisFirehoseEventEnvelope<>))] public class KinesisFirehoseEventEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs index 5614efca..a7bf04ed 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs @@ -4,12 +4,12 @@ using Amazon.Lambda.KinesisFirehoseEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.KinesisFirehose; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.KinesisFirehose; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(KinesisFirehoseResponseEnvelope<>))] public class KinesisFirehoseResponseEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/AwsLambda.Host.Envelopes.UnitTests.csproj b/tests/MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj similarity index 53% rename from tests/AwsLambda.Host.Envelopes.UnitTests/AwsLambda.Host.Envelopes.UnitTests.csproj rename to tests/MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj index 8229101e..e6b4c2bf 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/AwsLambda.Host.Envelopes.UnitTests.csproj +++ b/tests/MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj @@ -24,13 +24,13 @@ - - - - - - - - + + + + + + + + diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/SnsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/SnsEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/SnsEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/SnsEnvelopeTests.cs index 5e626e75..1490b6e2 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/SnsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/SnsEnvelopeTests.cs @@ -3,12 +3,12 @@ using Amazon.Lambda.SNSEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.Sns; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.Sns; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(SnsEnvelope<>))] public class SnsEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/SqsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/SqsEnvelopeTests.cs similarity index 99% rename from tests/AwsLambda.Host.Envelopes.UnitTests/SqsEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/SqsEnvelopeTests.cs index 96b30ad1..7f81ce3e 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/SqsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/SqsEnvelopeTests.cs @@ -3,13 +3,13 @@ using Amazon.Lambda.SQSEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.Sqs; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.Sqs; using Xunit; using SQSMessage = Amazon.Lambda.SQSEvents.SQSEvent.SQSMessage; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(SqsEnvelope<>))] public class SqsEnvelopeTests diff --git a/tests/AwsLambda.Host.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs similarity index 98% rename from tests/AwsLambda.Host.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs rename to tests/MinimalLambda.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs index 9c41f2f2..5c9dc78d 100644 --- a/tests/AwsLambda.Host.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs @@ -1,13 +1,13 @@ using System.Text.Json; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.Sns; -using AwsLambda.Host.Envelopes.Sqs; using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.Sns; +using MinimalLambda.Envelopes.Sqs; using Xunit; -namespace AwsLambda.Host.Envelopes.UnitTests; +namespace MinimalLambda.Envelopes.UnitTests; [TestSubject(typeof(SqsSnsEnvelope<>))] public class SqsSnsEnvelopeTests diff --git a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs similarity index 100% rename from tests/AwsLambda.Host.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs rename to tests/MinimalLambda.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs diff --git a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/GlobalUsings.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs similarity index 100% rename from tests/AwsLambda.Host.OpenTelemetry.UnitTests/GlobalUsings.cs rename to tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs diff --git a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs similarity index 99% rename from tests/AwsLambda.Host.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs rename to tests/MinimalLambda.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs index f62c038f..45b95958 100644 --- a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Trace; -namespace AwsLambda.Host.OpenTelemetry.UnitTests; +namespace MinimalLambda.OpenTelemetry.UnitTests; [TestSubject(typeof(LambdaOpenTelemetryServiceProviderExtensions))] public class LambdaOpenTelemetryServiceProviderExtensionsTests diff --git a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs similarity index 98% rename from tests/AwsLambda.Host.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs rename to tests/MinimalLambda.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs index f5b4e94a..3664d0ea 100644 --- a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs @@ -1,7 +1,7 @@ using AwsLambda.Host.UnitTests; using OpenTelemetry.Trace; -namespace AwsLambda.Host.OpenTelemetry.UnitTests; +namespace MinimalLambda.OpenTelemetry.UnitTests; [TestSubject(typeof(MiddlewareOpenTelemetryExtensions))] public class MiddlewareOpenTelemetryExtensionsTest diff --git a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/AwsLambda.Host.OpenTelemetry.UnitTests.csproj b/tests/MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj similarity index 87% rename from tests/AwsLambda.Host.OpenTelemetry.UnitTests/AwsLambda.Host.OpenTelemetry.UnitTests.csproj rename to tests/MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj index 05ee5da8..4d2e6a12 100644 --- a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/AwsLambda.Host.OpenTelemetry.UnitTests.csproj +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj @@ -30,7 +30,7 @@ - - + + diff --git a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/OnShutdownOpenTelemetryExtensionsTests.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/OnShutdownOpenTelemetryExtensionsTests.cs similarity index 95% rename from tests/AwsLambda.Host.OpenTelemetry.UnitTests/OnShutdownOpenTelemetryExtensionsTests.cs rename to tests/MinimalLambda.OpenTelemetry.UnitTests/OnShutdownOpenTelemetryExtensionsTests.cs index 41a23fec..4640433a 100644 --- a/tests/AwsLambda.Host.OpenTelemetry.UnitTests/OnShutdownOpenTelemetryExtensionsTests.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/OnShutdownOpenTelemetryExtensionsTests.cs @@ -5,7 +5,7 @@ using OpenTelemetry.Metrics; using OpenTelemetry.Trace; -namespace AwsLambda.Host.OpenTelemetry.UnitTests; +namespace MinimalLambda.OpenTelemetry.UnitTests; [TestSubject(typeof(OnShutdownOpenTelemetryExtensions))] public class OnShutdownOpenTelemetryExtensionsTests @@ -90,7 +90,7 @@ public async Task OnShutdownFlushTracer_RegistersShutdownHandler_AndSuccessfully new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry tracer provider force flush succeeded", } ); @@ -125,7 +125,7 @@ public async Task OnShutdownFlushTracer_RegistersShutdownHandler_AndFailedFlushe new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry tracer provider force flush failed", } ); @@ -160,7 +160,7 @@ public async Task OnShutdownFlushTracer_RegistersShutdownHandler_AndCanceledFlus new { Level = LogLevel.Warning, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry tracer provider force flush failed to complete within allocated time", } ); @@ -248,7 +248,7 @@ public async Task OnShutdownFlushMeter_RegistersShutdownHandler_AndSuccessfullyF new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry meter provider force flush succeeded", } ); @@ -283,7 +283,7 @@ public async Task OnShutdownFlushMeter_RegistersShutdownHandler_AndFailedFlushes new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry meter provider force flush failed", } ); @@ -318,7 +318,7 @@ public async Task OnShutdownFlushMeter_RegistersShutdownHandler_AndCanceledFlush new { Level = LogLevel.Warning, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry meter provider force flush failed to complete within allocated time", } ); @@ -408,7 +408,7 @@ public async Task OnShutdownFlushOpenTelemetry_BothFlushesBothSucceed() new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry meter provider force flush succeeded", } ) @@ -416,7 +416,7 @@ public async Task OnShutdownFlushOpenTelemetry_BothFlushesBothSucceed() new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry tracer provider force flush succeeded", } ); @@ -451,7 +451,7 @@ public async Task OnShutdownFlushOpenTelemetry_TracerFailsButMeterSucceeds() new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry meter provider force flush succeeded", } ) @@ -459,7 +459,7 @@ public async Task OnShutdownFlushOpenTelemetry_TracerFailsButMeterSucceeds() new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry tracer provider force flush failed", } ); @@ -494,7 +494,7 @@ public async Task OnShutdownFlushOpenTelemetry_MeterFailsButTracerSucceeds() new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry meter provider force flush failed", } ) @@ -502,7 +502,7 @@ public async Task OnShutdownFlushOpenTelemetry_MeterFailsButTracerSucceeds() new { Level = LogLevel.Information, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry tracer provider force flush succeeded", } ); @@ -542,7 +542,7 @@ public async Task OnShutdownFlushOpenTelemetry_BothFlushesTimeout() new { Level = LogLevel.Warning, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry meter provider force flush failed to complete within allocated time", } ) @@ -550,7 +550,7 @@ public async Task OnShutdownFlushOpenTelemetry_BothFlushesTimeout() new { Level = LogLevel.Warning, - Category = "AwsLambda.Host.OpenTelemetry", + Category = "MinimalLambda.OpenTelemetry", Message = "OpenTelemetry tracer provider force flush failed to complete within allocated time", } ); diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/DiagnosticTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/DiagnosticTests.cs similarity index 98% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/DiagnosticTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/DiagnosticTests.cs index 2f289aed..d1059fae 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/DiagnosticTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/DiagnosticTests.cs @@ -3,7 +3,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public class MapHandlerIncrementalGeneratorDiagnosticTests { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs similarity index 96% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/GeneratorTestHelpers.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index 8b283f9f..9f1753bb 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -3,16 +3,15 @@ using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; using AwesomeAssertions; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Core; using Basic.Reference.Assemblies; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; +using MinimalLambda.Host.Builder; -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; internal static class GeneratorTestHelpers { @@ -108,7 +107,7 @@ .. Net90.References.All.ToList(), ); var generator = new MapHandlerIncrementalGenerator( - "AwsLambda.Host.SourceGenerators", + "MinimalLambda.SourceGenerators", "0.0.0" ).AsSourceGenerator(); diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/AwsLambda.Host.SourceGenerators.UnitTests.csproj b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj similarity index 82% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/AwsLambda.Host.SourceGenerators.UnitTests.csproj rename to tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj index 0397ca40..89903a36 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/AwsLambda.Host.SourceGenerators.UnitTests.csproj +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj @@ -33,10 +33,10 @@ - - - - + + + + diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/ModuleInitializer.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/ModuleInitializer.cs similarity index 76% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/ModuleInitializer.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/ModuleInitializer.cs index 8c13202f..44910f9a 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/ModuleInitializer.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/ModuleInitializer.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public static class ModuleInitializer { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs similarity index 93% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs index 9bec200a..518692f3 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(14,8) [InterceptsLocation(1, "wCxh64raLv7JZxUcekz6bkIBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -81,7 +81,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService?, Name = service3, Source = Service, IsNullable = True, IsOptional = False} var arg6 = context.ServiceProvider.GetService(); castHandler.Invoke(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs index 2822f220..cde8382d 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "52YQ/UddFuGQH5asNzsp/L0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs index 3d363f12..b41198ba 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(10,8) [InterceptsLocation(1, "24NtoO22UPa+/C0ogM3RV+EAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -67,7 +67,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService, Name = service, Source = Service, IsNullable = False, IsOptional = False} var arg1 = context.ServiceProvider.GetRequiredService(); castHandler.Invoke(arg0, arg1); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs index 6c37b765..5f42da6f 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "jx1Tqmn1fJ3pftRGtSvbSsMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -72,7 +72,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 447689f9..8a745f64 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "kmm35a5GJaoqey+0CeV8vdMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -77,7 +77,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'global::IService' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 0410bb7b..7d8c54e5 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(8,8) [InterceptsLocation(1, "qgvWtxWrBmeBTRBtlT5A2LUAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -77,7 +77,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string?' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs index e2ca8757..412ef39e 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(8,8) [InterceptsLocation(1, "SBl4e782DgMu+0FLfrzfUbUAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -75,7 +75,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs index b51ae0fc..0005d4c5 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(12,8) [InterceptsLocation(1, "62ICm9hMTMkVRHJf7bEM0v4AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs index f75bd5b0..ce5d21e1 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "hQoB+WlSjNRKx1YwYlKZW70AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs similarity index 87% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs index d39dfe67..900ddfd8 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(10,8) [InterceptsLocation(1, "6HO/UYhbMUo2aMF5OFFj3scAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,16 +50,16 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) { var response = castHandler.Invoke(); context.Features.GetRequired().ResponseStream = response; - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs index 15af876e..220a88b4 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "0swNLwUGxn6gmcAxLw2VYcMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -70,7 +70,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs index ae5c5d4c..547f8219 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(11,8) [InterceptsLocation(1, "Uxt0NUyaj58kybSiao2f8REBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -74,7 +74,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs index 91c2af82..fcfd992b 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "IG1FKecgSQVVqxQ3PHQPeM0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -70,7 +70,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs index 3c4fe28d..b3195ead 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(10,8) [InterceptsLocation(1, "wn/8VnbL6/5enHoptgINB+cAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -72,7 +72,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs similarity index 88% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs index 99f4180c..73a21102 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(10,8) [InterceptsLocation(1, "f2st4QpM87EqtO+5cVLplOcAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -49,15 +49,15 @@ internal static ILambdaInvocationBuilder MapHandlerInterceptor0( Delegate handler ) { - var castHandler = (global::System.Func)handler; - + var castHandler = (global::System.Func)handler; + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -72,7 +72,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs index cb67dd68..f1f90c8b 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "cms2w+IHinDN9XOT4+diatMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs similarity index 93% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs index 1f5e12be..b953e161 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(10,8) [InterceptsLocation(1, "YAIayk0naS2HI+NqiUzlmO0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs similarity index 87% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs index b9127749..28ae85f0 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(11,8) [InterceptsLocation(1, "S8za7TGX8LSwYna0cXthvuAAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,15 +50,15 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) { castHandler.Invoke(); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs index a688a8ba..6edef637 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "K/A2Yp4hzHbk21l61w6haLYAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs index 64622794..ffcaeb9a 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(10,8) [InterceptsLocation(1, "VH5MZQ3KsBJFkPsnivxIPdQAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs index f6621812..fbe2b77c 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(11,8) [InterceptsLocation(1, "2v0Mx0/EAUlNqfkx9U5JLucAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs similarity index 88% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs index 71622551..1580b28e 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(10,8) [InterceptsLocation(1, "EIytviO7ID8d+8z3oQ4Pu8cAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -60,7 +60,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::System.IO.Stream, Name = input, Source = Event, IsNullable = False, IsOptional = False} var arg0 = context.Features.GetRequired().EventStream; castHandler.Invoke(arg0); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs index 0a7ba418..a80f8bfe 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs index 0a7ba418..a80f8bfe 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs similarity index 87% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs index 2e7f3425..fda5e96b 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "YIbj7XiC2amhwIlyj2HW1bYAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,15 +50,15 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) { castHandler.Invoke(); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs index e4ddccae..cd6c9af3 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(8,8) [InterceptsLocation(1, "XdsFhkLY1aZYCRYD2HXHFrUAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create>(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'global::Response' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs index b56aa222..72d1f804 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(8,8) [InterceptsLocation(1, "fUFDCv62We6/lGMG9FpYS7UAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'int?' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs index 1c0443c1..e2d8b846 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "Ta7Dv3cnwIzvY2JBRc5ijLYAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs index 3915a303..458ef758 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(8,8) [InterceptsLocation(1, "xtIY1NRH4poO99GLmpoGnbUAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -77,7 +77,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string?' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 4291d3bb..813f152e 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(8,8) [InterceptsLocation(1, "qtXEOV1k02+RkXoOA59GBrUAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -77,7 +77,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string?' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs index 742b789b..0e62b5fc 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "UWCFzECps5Zv/K6OoUlGmtMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 16eb612f..5087d458 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "4J9qyNm4aQaoE9yV4I7wUNMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -75,7 +75,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'global::IService' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs index dbbc06aa..2dba39bb 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(12,8) [InterceptsLocation(1, "Zx6wWbKlfl6HcErqMOpfK2EBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -66,7 +66,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService, Name = serviceB, Source = KeyedService, IsNullable = False, IsOptional = False, KeyedServiceKeyInfo { DisplayValue = (float)3.14, Type = float, BaseType = global::System.ValueType } } var arg1 = context.ServiceProvider.GetRequiredKeyedService((float)3.14); castHandler.Invoke(arg0, arg1); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs index 6f7e81db..e4ed71ea 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(12,8) [InterceptsLocation(1, "XD0eRdQJ2xwEO5+zwdJ8IV0BAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -66,7 +66,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService, Name = serviceB, Source = KeyedService, IsNullable = False, IsOptional = False, KeyedServiceKeyInfo { DisplayValue = (long)42, Type = long, BaseType = global::System.ValueType } } var arg1 = context.ServiceProvider.GetRequiredKeyedService((long)42); castHandler.Invoke(arg0, arg1); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs similarity index 93% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs index 55a711ad..36d24e7d 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(14,8) [InterceptsLocation(1, "FPApiCPACeBSE0aOLeXmruQBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -70,7 +70,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService, Name = serviceD, Source = KeyedService, IsNullable = False, IsOptional = False, KeyedServiceKeyInfo { DisplayValue = null, Type = object, BaseType = } } var arg3 = context.ServiceProvider.GetRequiredKeyedService(null); castHandler.Invoke(arg0, arg1, arg2, arg3); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs index 5ef64501..eb3ae173 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(13,8) [InterceptsLocation(1, "N8+wyBYUokyoNUAIxBkzoqsBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService, Name = serviceC, Source = KeyedService, IsNullable = False, IsOptional = False, KeyedServiceKeyInfo { DisplayValue = (sbyte)42, Type = sbyte, BaseType = global::System.ValueType } } var arg2 = context.ServiceProvider.GetRequiredKeyedService((sbyte)42); castHandler.Invoke(arg0, arg1, arg2); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs index c4c66f24..9e73dced 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(13,8) [InterceptsLocation(1, "rMkFDEUYJ34h2/gSzQaFl7YBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService, Name = serviceC, Source = KeyedService, IsNullable = False, IsOptional = False, KeyedServiceKeyInfo { DisplayValue = (global::ServiceType)1, Type = global::ServiceType, BaseType = global::System.Enum } } var arg2 = context.ServiceProvider.GetRequiredKeyedService((global::ServiceType)1); castHandler.Invoke(arg0, arg1, arg2); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs index 94940e25..ab6e5017 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(13,8) [InterceptsLocation(1, "3eiN2asEW2/G+R1Aj4dbcqIBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) // ParameterInfo { Type = global::IService, Name = serviceC, Source = KeyedService, IsNullable = False, IsOptional = False, KeyedServiceKeyInfo { DisplayValue = (ushort)42, Type = ushort, BaseType = global::System.ValueType } } var arg2 = context.ServiceProvider.GetRequiredKeyedService((ushort)42); castHandler.Invoke(arg0, arg1, arg2); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs similarity index 87% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs index d680e850..b8c84fea 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "z6sS8Y9yXWmqDTL/J/JyOsMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,15 +50,15 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) { castHandler.Invoke(); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs index e0ae781e..e5617b08 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "W6/BEm8FxiRW0gVV9g5fFtMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs index e73ca3cb..4f97c50b 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(11,8) [InterceptsLocation(1, "8oeVcVLGeqitmbmG/7HeZwABAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,19 +50,19 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create(); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -83,7 +83,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'string' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs index 5650dddd..8acce829 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "I4oSgX2EhCjJlUv+muXhcMMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'int' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs index 7ceff931..3f628453 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "MYd9JR07N7unKiyCLFng0cMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'int' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs similarity index 87% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs index 6280b42d..1669ded6 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "FboZTyPPzSjZNNWYolhn08MAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,15 +50,15 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + application.Handle(InvocationDelegate); - + return application; Task InvocationDelegate(ILambdaHostContext context) { castHandler.Invoke(); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs index 7019b5bd..e600c6b0 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "x4hOcx/Mdm3QPU6QMU8PCtMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,9 +50,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs index 65925787..9890cba1 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "rezyXVdhsY66Ems4DFa9p9MAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; async Task InvocationDelegate(ILambdaHostContext context) diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs index de5c2b88..2304a93d 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -32,16 +32,16 @@ namespace AwsLambda.Host.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using AwsLambda.Host.Builder; - using AwsLambda.Host.Core; + using MinimalLambda.Host.Builder; + using MinimalLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + // Location: InputFile.cs(9,8) [InterceptsLocation(1, "3PhYgT8MPlODZy+E9raU0cMAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( @@ -50,14 +50,14 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + application.Handle(InvocationDelegate); - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create(); - + return application; Task InvocationDelegate(ILambdaHostContext context) @@ -68,7 +68,7 @@ Task InvocationDelegate(ILambdaHostContext context) throw new InvalidOperationException($"Response feature for type 'int' is not available in the collection."); } responseFeature.SetResponse(response); - return Task.CompletedTask; + return Task.CompletedTask; } } } diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs index 0a7ba418..a80f8bfe 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs index cb509016..7f3b78d3 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs index fdf3271e..c9c29a78 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = global::IService, Name = service, Source = Service, IsNullable = False, IsOptional = False} @@ -59,4 +59,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs index c3be8b7c..0b1aeceb 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + async Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = global::IService, Name = service, Source = Service, IsNullable = False, IsOptional = False} @@ -59,4 +59,4 @@ async Task OnInit(IServiceProvider serviceProvider, CancellationToken canc } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs index 4fac26bf..5bb50727 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(12,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs similarity index 93% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs index ffa8d89c..cc5d48f4 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,16 +47,16 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); return response; } } - + // Location: InputFile.cs(15,8) [InterceptsLocation(1, "WS5xwmfdbttlkCDwmVN/4RwBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor1( @@ -65,9 +65,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string?, Name = x, Source = Service, IsNullable = True, IsOptional = False} @@ -78,7 +78,7 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati return response; } } - + // Location: InputFile.cs(22,8) [InterceptsLocation(1, "WS5xwmfdbttlkCDwmVN/4YEBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor2( @@ -87,9 +87,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string, Name = x, Source = Service, IsNullable = False, IsOptional = False} @@ -101,4 +101,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs similarity index 100% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs index 8b714fe9..6f47576d 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs index df732b9c..8afa2576 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs index b5cb6dba..8fbae0b4 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs index a77f3065..5bee3518 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs index e185e626..e4425a53 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + async Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { await castHandler.Invoke(); @@ -57,4 +57,4 @@ async Task OnInit(IServiceProvider serviceProvider, CancellationToken canc } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs index 08f2a165..79c64ecb 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + async Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { await castHandler.Invoke(); @@ -57,4 +57,4 @@ async Task OnInit(IServiceProvider serviceProvider, CancellationToken canc } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs index 0e082f1b..e47131e9 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index 622ef238..eb4850f2 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string?, Name = x, Source = Service, IsNullable = True, IsOptional = False} @@ -61,4 +61,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs similarity index 94% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index bcc90a41..fd50afa1 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(12,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { if (serviceProvider.GetService() is not IServiceProviderIsKeyedService) @@ -71,4 +71,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs index a8d672a5..e5af2083 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnInit(OnInit); - + Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string, Name = x, Source = Service, IsNullable = False, IsOptional = False} @@ -61,4 +61,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs similarity index 92% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs index 0a7ba418..a80f8bfe 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs index 8cdb556b..9a74ce4e 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Action)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs similarity index 93% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs index a21a7379..ff4193ef 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,16 +47,16 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); return response; } } - + // Location: InputFile.cs(15,8) [InterceptsLocation(1, "8z0FL9iGVp57G+1Z1fBD3xcBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor1( @@ -65,9 +65,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string?, Name = x, Source = Service, IsNullable = True, IsOptional = False} @@ -78,7 +78,7 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation return response; } } - + // Location: InputFile.cs(22,8) [InterceptsLocation(1, "8z0FL9iGVp57G+1Z1fBD34IBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor2( @@ -87,9 +87,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string, Name = x, Source = Service, IsNullable = False, IsOptional = False} @@ -101,4 +101,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs index 2cbcf78a..abadf96e 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { var response = castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs similarity index 89% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs index b7be06a8..7bb1dfa1 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { castHandler.Invoke(); @@ -57,4 +57,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs index e8c28781..388bc650 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,13 +47,13 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnShutdown(OnShutdown); - + async Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { await castHandler.Invoke(); } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs similarity index 90% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs index 5d5d7841..a71fad70 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,13 +47,13 @@ Delegate handler ) { var castHandler = (global::System.Func>)handler; - + return application.OnShutdown(OnShutdown); - + async Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { await castHandler.Invoke(); } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index bf74bdaf..0b7de3ea 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string?, Name = x, Source = Service, IsNullable = True, IsOptional = False} @@ -61,4 +61,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs similarity index 94% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index 6dc057d1..38f7d803 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(12,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { if (serviceProvider.GetService() is not IServiceProviderIsKeyedService) @@ -71,4 +71,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs similarity index 91% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs index d888bebc..a126207c 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs @@ -15,8 +15,8 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { @@ -34,9 +34,9 @@ namespace AwsLambda.Host.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using AwsLambda.Host.Builder; - - [GeneratedCode("AwsLambda.Host.SourceGenerators", "0.0.0")] + using MinimalLambda.Host.Builder; + + [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) @@ -47,9 +47,9 @@ Delegate handler ) { var castHandler = (global::System.Func)handler; - + return application.OnShutdown(OnShutdown); - + Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellationToken) { // ParameterInfo { Type = string, Name = x, Source = Service, IsNullable = False, IsOptional = False} @@ -61,4 +61,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs index 422a09cf..1fd63328 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs @@ -1,9 +1,8 @@ using System.Collections; using AwesomeAssertions; -using AwsLambda.Host.SourceGenerators.Types; using JetBrains.Annotations; -namespace AwsLambda.Host.SourceGenerators.UnitTests.Types; +namespace MinimalLambda.SourceGenerators.UnitTests.Types; [TestSubject(typeof(EquatableArray<>))] public class EquatableArrayTests diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Types/HashCodeTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/HashCodeTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/Types/HashCodeTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/Types/HashCodeTests.cs index 8c3410ef..bd7c23fd 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/Types/HashCodeTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/HashCodeTests.cs @@ -1,8 +1,8 @@ using AwesomeAssertions; using JetBrains.Annotations; -using HashCode = AwsLambda.Host.SourceGenerators.Types.HashCode; +using HashCode = MinimalLambda.Host.SourceGenerators.Types.HashCode; -namespace AwsLambda.Host.SourceGenerators.UnitTests.Types; +namespace MinimalLambda.SourceGenerators.UnitTests.Types; [TestSubject(typeof(HashCode))] public class HashCodeTests diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs index 87d6b667..224cb735 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public class BlockLambdaVerifyTests { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs index bce47a67..6dc85847 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public class ExpressionLambdaVerifyTests { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs index e3eedf8d..ae01724f 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public class KeyedServiceVerifyTests { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs index 2368a9d2..8ff28cee 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public class OnInitVerifyTests { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs index 7bf0299b..e9522689 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public class OnShutdownVerifyTests { diff --git a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs similarity index 99% rename from tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs rename to tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs index db375985..55a83301 100644 --- a/tests/AwsLambda.Host.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.SourceGenerators.UnitTests; +namespace MinimalLambda.SourceGenerators.UnitTests; public class MethodHandlerVerifyTests { diff --git a/tests/AwsLambda.Host.UnitTests/AutoNSubstituteDataAttribute.cs b/tests/MinimalLambda.UnitTests/AutoNSubstituteDataAttribute.cs similarity index 92% rename from tests/AwsLambda.Host.UnitTests/AutoNSubstituteDataAttribute.cs rename to tests/MinimalLambda.UnitTests/AutoNSubstituteDataAttribute.cs index 1c549b23..7746bf6c 100644 --- a/tests/AwsLambda.Host.UnitTests/AutoNSubstituteDataAttribute.cs +++ b/tests/MinimalLambda.UnitTests/AutoNSubstituteDataAttribute.cs @@ -1,6 +1,6 @@ using AutoFixture.AutoNSubstitute; -namespace AwsLambda.Host.UnitTests; +namespace MinimalLambda.UnitTests; public class AutoNSubstituteDataAttribute() : AutoDataAttribute(() => diff --git a/tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaInvocationBuilderFactoryTests.cs b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaInvocationBuilderFactoryTests.cs similarity index 97% rename from tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaInvocationBuilderFactoryTests.cs rename to tests/MinimalLambda.UnitTests/Builder/DefaultLambdaInvocationBuilderFactoryTests.cs index 7c1b2e4c..dd695bde 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaInvocationBuilderFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaInvocationBuilderFactoryTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Builder; +namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(DefaultLambdaInvocationBuilderFactory))] public class DefaultLambdaInvocationBuilderFactoryTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs similarity index 93% rename from tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs rename to tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs index e6e5399a..14fb0a32 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs @@ -1,13 +1,12 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.UnitTests.Builder; +namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(DefaultLambdaOnInitBuilderFactory))] public class DefaultLambdaOnInitBuilderFactoryTests { - private readonly IOptions _options = - Microsoft.Extensions.Options.Options.Create(new LambdaHostOptions()); + private readonly IOptions _options = Options.Create(new LambdaHostOptions()); private readonly IServiceScopeFactory _scopeFactory = Substitute.For(); private readonly IServiceProvider _serviceProvider = Substitute.For(); diff --git a/tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaOnShutdownBuilderFactoryTests.cs b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnShutdownBuilderFactoryTests.cs similarity index 98% rename from tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaOnShutdownBuilderFactoryTests.cs rename to tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnShutdownBuilderFactoryTests.cs index 8d31fc72..0f3d6db5 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/DefaultLambdaOnShutdownBuilderFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnShutdownBuilderFactoryTests.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.UnitTests.Builder; +namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(DefaultLambdaOnShutdownBuilderFactory))] public class DefaultLambdaOnShutdownBuilderFactoryTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/ConfigurationServiceCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/ConfigurationServiceCollectionExtensionsTests.cs similarity index 98% rename from tests/AwsLambda.Host.UnitTests/Builder/Extensions/ConfigurationServiceCollectionExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Builder/Extensions/ConfigurationServiceCollectionExtensionsTests.cs index 932c00dc..477c00cd 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/ConfigurationServiceCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/ConfigurationServiceCollectionExtensionsTests.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.UnitTests.Builder.Extensions; +namespace MinimalLambda.UnitTests.Builder.Extensions; // Source file is in Microsoft.Extensions.DependencyInjection namespace diff --git a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs similarity index 98% rename from tests/AwsLambda.Host.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs index 7eb29534..98114132 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs @@ -1,7 +1,7 @@ -using AwsLambda.Host.Builder.Extensions; using Microsoft.Extensions.DependencyInjection; +using MinimalLambda.Host.Builder.Extensions; -namespace AwsLambda.Host.UnitTests.Builder.Extensions; +namespace MinimalLambda.UnitTests.Builder.Extensions; [TestSubject(typeof(LambdaHttpClientServiceCollectionExtensions))] public class LambdaHttpClientServiceCollectionExtensionsTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs similarity index 97% rename from tests/AwsLambda.Host.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs index 7c6c4c18..b62fb887 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs @@ -1,7 +1,8 @@ +using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -namespace AwsLambda.Host.UnitTests.Application.Extensions; +namespace MinimalLambda.UnitTests.Application.Extensions; [TestSubject(typeof(MiddlewareLambdaApplicationExtensions))] public class MiddlewareLambdaApplicationExtensionsTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/SerializerServiceCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/SerializerServiceCollectionExtensionsTests.cs similarity index 97% rename from tests/AwsLambda.Host.UnitTests/Builder/Extensions/SerializerServiceCollectionExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Builder/Extensions/SerializerServiceCollectionExtensionsTests.cs index 9da04bd1..8b90545c 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/SerializerServiceCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/SerializerServiceCollectionExtensionsTests.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.UnitTests.Builder.Extensions; +namespace MinimalLambda.UnitTests.Builder.Extensions; [TestSubject(typeof(SerializerServiceCollectionExtensions))] public class SerializerServiceCollectionExtensionsTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs index 61d09d91..f38be37c 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/ServiceCollectionExtensionsTests.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.UnitTests.Builder.Extensions; +namespace MinimalLambda.UnitTests.Builder.Extensions; [TestSubject(typeof(ServiceCollectionExtensions))] public class ServiceCollectionExtensionsTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/LambdaApplicationBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Builder/LambdaApplicationBuilderTests.cs rename to tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs index 7befa351..bedd4394 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/LambdaApplicationBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs @@ -1,9 +1,10 @@ +using AwsLambda.Host; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.UnitTests.Builder; +namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(LambdaApplicationBuilder))] public class LambdaApplicationBuilderTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/LambdaApplicationTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Builder/LambdaApplicationTests.cs rename to tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs index 0b34e899..b37286a0 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/LambdaApplicationTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs @@ -1,7 +1,8 @@ +using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -namespace AwsLambda.Host.UnitTests.Application; +namespace MinimalLambda.UnitTests.Application; [TestSubject(typeof(LambdaApplication))] public class LambdaApplicationTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/LambdaInvocationBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaInvocationBuilderTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Builder/LambdaInvocationBuilderTests.cs rename to tests/MinimalLambda.UnitTests/Builder/LambdaInvocationBuilderTests.cs index 20686593..dde92019 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/LambdaInvocationBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaInvocationBuilderTests.cs @@ -1,4 +1,6 @@ -namespace AwsLambda.Host.UnitTests.Builder; +using AwsLambda.Host; + +namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(LambdaInvocationBuilder))] public class LambdaInvocationBuilderTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/LambdaOnInitBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs similarity index 92% rename from tests/AwsLambda.Host.UnitTests/Builder/LambdaOnInitBuilderTests.cs rename to tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs index 384aafea..ad57a04c 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/LambdaOnInitBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs @@ -1,7 +1,8 @@ +using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.UnitTests.Builder; +namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(LambdaOnInitBuilder))] public class LambdaOnInitBuilderTests @@ -189,9 +190,7 @@ public async Task Build_WithSingleSuccessfulHandler_ReturnsTrue() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( - new LambdaHostOptions() - ); + var lambdaHostOptions = Options.Create(new LambdaHostOptions()); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var handlerCalled = false; @@ -218,9 +217,7 @@ public async Task Build_WithHandlerReturnsFalse_ReturnsFalse() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( - new LambdaHostOptions() - ); + var lambdaHostOptions = Options.Create(new LambdaHostOptions()); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); LambdaInitDelegate handler = (_, _) => Task.FromResult(false); @@ -241,9 +238,7 @@ public async Task Build_WithMultipleHandlers_AllExecuted() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( - new LambdaHostOptions() - ); + var lambdaHostOptions = Options.Create(new LambdaHostOptions()); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var handler1Called = false; var handler2Called = false; @@ -288,9 +283,7 @@ public async Task Build_WithAnyHandlerReturningFalse_ReturnsFalse() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( - new LambdaHostOptions() - ); + var lambdaHostOptions = Options.Create(new LambdaHostOptions()); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); LambdaInitDelegate handler1 = (_, _) => Task.FromResult(true); @@ -315,9 +308,7 @@ public async Task Build_WhenHandlerThrowsException_ThrowsAggregateException() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( - new LambdaHostOptions() - ); + var lambdaHostOptions = Options.Create(new LambdaHostOptions()); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var testException = new InvalidOperationException("Test error"); @@ -339,9 +330,7 @@ public async Task Build_WithMultipleFailures_AggregatesAllErrors() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( - new LambdaHostOptions() - ); + var lambdaHostOptions = Options.Create(new LambdaHostOptions()); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var exception1 = new InvalidOperationException("Error 1"); var exception2 = new ArgumentException("Error 2"); @@ -366,7 +355,7 @@ public async Task Build_WithMultipleFailures_AggregatesAllErrors() public async Task Build_RespectsInitTimeout(IServiceScopeFactory scopeFactory) { // Arrange - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + var lambdaHostOptions = Options.Create( new LambdaHostOptions { InitTimeout = TimeSpan.FromMilliseconds(50) } ); var serviceProvider = new ServiceCollection().BuildServiceProvider(); @@ -396,9 +385,7 @@ IServiceScopeFactory scopeFactory ) { // Arrange - var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( - new LambdaHostOptions() - ); + var lambdaHostOptions = Options.Create(new LambdaHostOptions()); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var scopeUsed = false; diff --git a/tests/AwsLambda.Host.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs rename to tests/MinimalLambda.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs index 7a7605c0..5f17ad1e 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs @@ -1,6 +1,7 @@ +using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.UnitTests.Builder; +namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(LambdaOnShutdownBuilder))] public class LambdaOnShutdownBuilderTests diff --git a/tests/AwsLambda.Host.UnitTests/Builder/OnInit/OutputFormattingLambdaApplicationExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/OnInit/OutputFormattingLambdaApplicationExtensionsTests.cs similarity index 97% rename from tests/AwsLambda.Host.UnitTests/Builder/OnInit/OutputFormattingLambdaApplicationExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Builder/OnInit/OutputFormattingLambdaApplicationExtensionsTests.cs index 2dbcb2b2..b9cafb50 100644 --- a/tests/AwsLambda.Host.UnitTests/Builder/OnInit/OutputFormattingLambdaApplicationExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/OnInit/OutputFormattingLambdaApplicationExtensionsTests.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -namespace AwsLambda.Host.UnitTests.Application.Extensions; +namespace MinimalLambda.UnitTests.Application.Extensions; [TestSubject(typeof(OutputFormattingLambdaApplicationExtensions))] public class OutputFormattingLambdaApplicationExtensionsTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs b/tests/MinimalLambda.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs similarity index 88% rename from tests/AwsLambda.Host.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs rename to tests/MinimalLambda.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs index 12c38779..df2120df 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs @@ -1,4 +1,6 @@ -namespace AwsLambda.Host.UnitTests; +using Microsoft.Extensions.Options; + +namespace MinimalLambda.UnitTests; [TestSubject(typeof(DefaultLambdaCancellationFactory))] public class DefaultLambdaCancellationFactoryTest @@ -7,7 +9,7 @@ public class DefaultLambdaCancellationFactoryTest public void Constructor_WithNegativeBufferDuration_ThrowsArgumentOutOfRangeException() { // Arrange - var options = Microsoft.Extensions.Options.Options.Create( + var options = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(-1) } ); @@ -23,10 +25,10 @@ public void Constructor_WithNegativeBufferDuration_ThrowsArgumentOutOfRangeExcep public void Constructor_WithZeroOrPositiveBufferDuration_DoesNotThrow() { // Arrange - var optionsWithZero = Microsoft.Extensions.Options.Options.Create( + var optionsWithZero = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.Zero } ); - var optionsWithPositive = Microsoft.Extensions.Options.Options.Create( + var optionsWithPositive = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(10) } ); @@ -48,7 +50,7 @@ public void Constructor_WithZeroOrPositiveBufferDuration_DoesNotThrow() public void NewCancellationTokenSource_WithNullContext_ThrowsArgumentNullException() { // Arrange - var options = Microsoft.Extensions.Options.Options.Create( + var options = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(5) } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -65,7 +67,7 @@ public void NewCancellationTokenSource_WithNullContext_ThrowsArgumentNullExcepti public void NewCancellationTokenSource_WhenContextRemainingTimeZeroOrLess_ThrowsInvalidOperationException() { // Arrange - var options = Microsoft.Extensions.Options.Options.Create( + var options = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(5) } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -89,7 +91,7 @@ public void NewCancellationTokenSource_WhenBufferExceedsRemainingTime_ThrowsInva { // Arrange var bufferDuration = TimeSpan.FromSeconds(10); - var options = Microsoft.Extensions.Options.Options.Create( + var options = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = bufferDuration } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -109,7 +111,7 @@ public void NewCancellationTokenSource_WithValidContext_ReturnsConfiguredCancell { // Arrange var bufferDuration = TimeSpan.FromSeconds(5); - var options = Microsoft.Extensions.Options.Options.Create( + var options = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = bufferDuration } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -135,7 +137,7 @@ public void NewCancellationTokenSource_WithRemainingTimeEqualToBuffer_ThrowsInva { // Arrange var bufferDuration = TimeSpan.FromSeconds(10); - var options = Microsoft.Extensions.Options.Options.Create( + var options = Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = bufferDuration } ); var factory = new DefaultLambdaCancellationFactory(options); diff --git a/tests/AwsLambda.Host.UnitTests/Core/Context/DefaultLambdaHostContextTests.cs b/tests/MinimalLambda.UnitTests/Core/Context/DefaultLambdaHostContextTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Context/DefaultLambdaHostContextTests.cs rename to tests/MinimalLambda.UnitTests/Core/Context/DefaultLambdaHostContextTests.cs index 73ec0a3e..b3e5ae3f 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Context/DefaultLambdaHostContextTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Context/DefaultLambdaHostContextTests.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.UnitTests.Core.Context; +namespace MinimalLambda.UnitTests.Core.Context; [TestSubject(typeof(DefaultLambdaHostContext))] public class DefaultLambdaHostContextTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Context/LambdaHostContextAccessorTests.cs b/tests/MinimalLambda.UnitTests/Core/Context/LambdaHostContextAccessorTests.cs similarity index 98% rename from tests/AwsLambda.Host.UnitTests/Core/Context/LambdaHostContextAccessorTests.cs rename to tests/MinimalLambda.UnitTests/Core/Context/LambdaHostContextAccessorTests.cs index 41319d4f..c0849b4c 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Context/LambdaHostContextAccessorTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Context/LambdaHostContextAccessorTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Context; +namespace MinimalLambda.UnitTests.Core.Context; [TestSubject(typeof(LambdaHostContextAccessor))] public class LambdaHostContextAccessorTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Context/LambdaHostContextFactoryTests.cs b/tests/MinimalLambda.UnitTests/Core/Context/LambdaHostContextFactoryTests.cs similarity index 98% rename from tests/AwsLambda.Host.UnitTests/Core/Context/LambdaHostContextFactoryTests.cs rename to tests/MinimalLambda.UnitTests/Core/Context/LambdaHostContextFactoryTests.cs index 009bb927..70c65d37 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Context/LambdaHostContextFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Context/LambdaHostContextFactoryTests.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace AwsLambda.Host.UnitTests.Core.Context; +namespace MinimalLambda.UnitTests.Core.Context; [TestSubject(typeof(LambdaHostContextFactory))] public class LambdaHostContextFactoryTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultEventFeatureProviderTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureProviderTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Features/DefaultEventFeatureProviderTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureProviderTests.cs index 026fd868..b2d4f6eb 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultEventFeatureProviderTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureProviderTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(DefaultEventFeatureProvider<>))] public class DefaultEventFeatureProviderTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultEventFeatureTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Features/DefaultEventFeatureTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureTests.cs index 3de217b0..69367c2e 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultEventFeatureTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultEventFeatureTests.cs @@ -1,6 +1,6 @@ using NSubstitute.ExceptionExtensions; -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(DefaultEventFeature<>))] public class DefaultEventFeatureTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs similarity index 96% rename from tests/AwsLambda.Host.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs index 496eaabc..254a7e38 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionFactoryTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(DefaultFeatureCollectionFactory))] public class DefaultFeatureCollectionFactoryTest diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs index c17593b7..cf13b624 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultFeatureCollectionTests.cs @@ -1,6 +1,6 @@ using System.Collections; -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(DefaultFeatureCollection))] public class DefaultFeatureCollectionTest diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultResponseFeatureProviderTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultResponseFeatureProviderTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Features/DefaultResponseFeatureProviderTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/DefaultResponseFeatureProviderTests.cs index 446516e9..cbce49a1 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultResponseFeatureProviderTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultResponseFeatureProviderTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(DefaultResponseFeatureProvider<>))] public class DefaultResponseFeatureProviderTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultResponseFeatureTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/DefaultResponseFeatureTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Features/DefaultResponseFeatureTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/DefaultResponseFeatureTests.cs index 22299b80..b0d321c4 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/DefaultResponseFeatureTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/DefaultResponseFeatureTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(DefaultResponseFeature<>))] public class DefaultResponseFeatureTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/EventFeatureProviderFactoryTest.cs b/tests/MinimalLambda.UnitTests/Core/Features/EventFeatureProviderFactoryTest.cs similarity index 93% rename from tests/AwsLambda.Host.UnitTests/Core/Features/EventFeatureProviderFactoryTest.cs rename to tests/MinimalLambda.UnitTests/Core/Features/EventFeatureProviderFactoryTest.cs index 8ddd3b6e..632dc169 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/EventFeatureProviderFactoryTest.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/EventFeatureProviderFactoryTest.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(EventFeatureProviderFactory))] public class EventFeatureProviderFactoryTest diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs index c03eb2b3..74be92b1 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/FeatureCollectionExtensionsTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(FeatureCollectionExtensions))] public class FeatureCollectionExtensionsTest diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/FeatureLambdaHostContextExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/FeatureLambdaHostContextExtensionsTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Features/FeatureLambdaHostContextExtensionsTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/FeatureLambdaHostContextExtensionsTests.cs index 62ee5712..6a58b7df 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/FeatureLambdaHostContextExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/FeatureLambdaHostContextExtensionsTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(FeatureLambdaHostContextExtensions))] public class FeatureLambdaHostContextExtensionsTest diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/InvocationDataFeatureFactoryTests.cs b/tests/MinimalLambda.UnitTests/Core/Features/InvocationDataFeatureFactoryTests.cs similarity index 97% rename from tests/AwsLambda.Host.UnitTests/Core/Features/InvocationDataFeatureFactoryTests.cs rename to tests/MinimalLambda.UnitTests/Core/Features/InvocationDataFeatureFactoryTests.cs index 81b8271c..7ff9a938 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/InvocationDataFeatureFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/InvocationDataFeatureFactoryTests.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(InvocationDataFeatureFactory))] public class InvocationDataFeatureFactoryTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Features/ResponseFeatureProviderFactoryTest.cs b/tests/MinimalLambda.UnitTests/Core/Features/ResponseFeatureProviderFactoryTest.cs similarity index 93% rename from tests/AwsLambda.Host.UnitTests/Core/Features/ResponseFeatureProviderFactoryTest.cs rename to tests/MinimalLambda.UnitTests/Core/Features/ResponseFeatureProviderFactoryTest.cs index ee375d57..387ca334 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Features/ResponseFeatureProviderFactoryTest.cs +++ b/tests/MinimalLambda.UnitTests/Core/Features/ResponseFeatureProviderFactoryTest.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.UnitTests.Core.Features; +namespace MinimalLambda.UnitTests.Core.Features; [TestSubject(typeof(ResponseFeatureProviderFactory))] public class ResponseFeatureProviderFactoryTest diff --git a/tests/AwsLambda.Host.UnitTests/Core/Options/HostOptionsPostConfigurationTests.cs b/tests/MinimalLambda.UnitTests/Core/Options/HostOptionsPostConfigurationTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Options/HostOptionsPostConfigurationTests.cs rename to tests/MinimalLambda.UnitTests/Core/Options/HostOptionsPostConfigurationTests.cs index 6a896946..beeb31cd 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Options/HostOptionsPostConfigurationTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Options/HostOptionsPostConfigurationTests.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.UnitTests.Core.Options; +namespace MinimalLambda.UnitTests.Core.Options; [TestSubject(typeof(HostOptionsPostConfiguration))] public class HostOptionsPostConfigurationTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaBootstrapAdapterTests.cs b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaBootstrapAdapterTests.cs similarity index 93% rename from tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaBootstrapAdapterTests.cs rename to tests/MinimalLambda.UnitTests/Core/Runtime/LambdaBootstrapAdapterTests.cs index d7250f53..bef2c65b 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaBootstrapAdapterTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaBootstrapAdapterTests.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Options; -namespace AwsLambda.Host.UnitTests.Core.Runtime; +namespace MinimalLambda.UnitTests.Core.Runtime; [TestSubject(typeof(LambdaBootstrapAdapter))] public class LambdaBootstrapAdapterTest diff --git a/tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs rename to tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs index 462de6be..1808eef2 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs @@ -1,6 +1,7 @@ +using AwsLambda.Host; using Microsoft.Extensions.Options; -namespace AwsLambda.Host.UnitTests.Core.Runtime; +namespace MinimalLambda.UnitTests.Core.Runtime; [TestSubject(typeof(LambdaHandlerComposer))] public class LambdaHandlerComposerTests diff --git a/tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs similarity index 99% rename from tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs rename to tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs index 6d97460c..9e4110b2 100644 --- a/tests/AwsLambda.Host.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHostedServiceTests.cs @@ -1,7 +1,7 @@ using System.Reflection; using Microsoft.Extensions.Hosting; -namespace AwsLambda.Host.UnitTests.Core.Runtime; +namespace MinimalLambda.UnitTests.Core.Runtime; [TestSubject(typeof(LambdaHostedService))] public class LambdaHostedServiceTests diff --git a/tests/AwsLambda.Host.UnitTests/GlobalUsings.cs b/tests/MinimalLambda.UnitTests/GlobalUsings.cs similarity index 56% rename from tests/AwsLambda.Host.UnitTests/GlobalUsings.cs rename to tests/MinimalLambda.UnitTests/GlobalUsings.cs index 6b42d1da..436b3d2e 100644 --- a/tests/AwsLambda.Host.UnitTests/GlobalUsings.cs +++ b/tests/MinimalLambda.UnitTests/GlobalUsings.cs @@ -2,10 +2,10 @@ global using AutoFixture; global using AutoFixture.Xunit3; global using AwesomeAssertions; -global using AwsLambda.Host.Builder; -global using AwsLambda.Host.Core; -global using AwsLambda.Host.Options; -global using AwsLambda.Host.Runtime; global using JetBrains.Annotations; +global using MinimalLambda.Host.Builder; +global using MinimalLambda.Host.Core; +global using MinimalLambda.Host.Options; +global using MinimalLambda.Host.Runtime; global using NSubstitute; global using Xunit; diff --git a/tests/AwsLambda.Host.UnitTests/AwsLambda.Host.UnitTests.csproj b/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj similarity index 94% rename from tests/AwsLambda.Host.UnitTests/AwsLambda.Host.UnitTests.csproj rename to tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj index 9040ed02..c8822ae3 100644 --- a/tests/AwsLambda.Host.UnitTests/AwsLambda.Host.UnitTests.csproj +++ b/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj @@ -30,6 +30,6 @@ - + From 99597a3491e8aeca25e2501a4d6b3960498102c8 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:11:08 -0500 Subject: [PATCH 02/25] refactor: rename AwsLambda.Host to MinimalLambda - Updated project namespaces and references from AwsLambda.Host to MinimalLambda. - Changed all package names and documentation references to align with MinimalLambda branding. - Adjusted example projects and unit tests to reflect the renaming. --- .github/workflows/main-build.yaml | 2 +- .github/workflows/pr-build.yaml | 2 +- .gitignore | 2 +- .grenrc.js | 8 +- CLAUDE.md | 6 +- CONTRIBUTING.md | 8 +- README.md | 34 ++++---- docs/advanced/index.md | 2 +- docs/features/envelopes.md | 26 +++--- docs/features/index.md | 2 +- docs/features/open_telemetry.md | 32 ++++---- docs/getting-started/core-concepts.md | 16 ++-- docs/getting-started/first-lambda.md | 12 +-- docs/getting-started/index.md | 4 +- docs/getting-started/installation.md | 46 +++++------ docs/guides/configuration.md | 8 +- docs/guides/dependency-injection.md | 2 +- docs/guides/error-handling.md | 8 +- docs/guides/handler-registration.md | 8 +- docs/guides/hosting.md | 2 +- docs/guides/index.md | 4 +- docs/guides/lifecycle-management.md | 12 +-- docs/guides/middleware.md | 6 +- docs/index.md | 32 ++++---- .../MinimalLambda.Example.Events.csproj | 2 +- .../MinimalLambda.Example.Events/Program.cs | 1 + .../MinimalLambda.Example.HelloWorld.csproj | 2 +- ...MinimalLambda.Example.HelloWorldAot.csproj | 2 +- .../MinimalLambda.Example.Lifecycle.csproj | 2 +- ...MinimalLambda.Example.OpenTelemetry.csproj | 4 +- .../README.md | 4 +- mkdocs.yml | 2 +- scripts/validate-version.sh | 4 +- .../AlbRequestEnvelope.cs | 3 +- .../AlbRequestEnvelopeBase.cs | 3 +- .../AlbResponseEnvelope.cs | 3 +- .../AlbResponseEnvelopeBase.cs | 3 +- .../MinimalLambda.Envelopes.Alb/README.md | 30 +++---- .../ApiGatewayRequestEnvelope.cs | 3 +- .../ApiGatewayRequestEnvelopeBase.cs | 3 +- .../ApiGatewayResponseEnvelope.cs | 3 +- .../ApiGatewayResponseEnvelopeBase.cs | 3 +- .../ApiGatewayV2RequestEnvelope.cs | 3 +- .../ApiGatewayV2RequestEnvelopeBase.cs | 3 +- .../ApiGatewayV2ResponseEnvelope.cs | 3 +- .../ApiGatewayV2ResponseEnvelopeBase.cs | 3 +- .../README.md | 30 +++---- .../CloudWatchLogsEnvelope.cs | 2 +- .../CloudWatchLogsEnvelopeBase.cs | 3 +- .../CloudWatchLogsEnvelopeT.cs | 3 +- .../README.md | 30 +++---- .../KafkaEnvelope.cs | 4 +- .../KafkaEnvelopeBase.cs | 4 +- .../MinimalLambda.Envelopes.Kafka.csproj | 2 +- .../MinimalLambda.Envelopes.Kafka/README.md | 30 +++---- .../KinesisEnvelope.cs | 3 +- .../KinesisEnvelopeBase.cs | 3 +- .../MinimalLambda.Envelopes.Kinesis/README.md | 30 +++---- .../KinesisFirehoseEventEnvelope.cs | 3 +- .../KinesisFirehoseEventEnvelopeBase.cs | 3 +- .../KinesisFirehoseResponseEnvelope.cs | 3 +- .../KinesisFirehoseResponseEnvelopeBase.cs | 3 +- .../README.md | 30 +++---- .../MinimalLambda.Envelopes.Sns/README.md | 30 +++---- .../SnsEnvelope.cs | 3 +- .../SnsEnvelopeBase.cs | 3 +- .../MinimalLambda.Envelopes.Sqs/README.md | 30 +++---- .../SqsEnvelope.cs | 3 +- .../SqsEnvelopeBase.cs | 3 +- .../SqsSnsEnvelope.cs | 3 +- src/Envelopes/README.md | 18 ++--- .../Builders/ILambdaInvocationBuilder.cs | 2 +- .../Builders/ILambdaOnInitBuilder.cs | 2 +- .../Builders/ILambdaOnShutdownBuilder.cs | 2 +- .../Core/ILambdaCancellationFactory.cs | 2 +- .../Core/ILambdaHostContext.cs | 2 +- .../Core/ILambdaHostContextAccessor.cs | 2 +- .../Delegates/LambdaInitDelegate.cs | 2 +- .../Delegates/LambdaInvocationDelegate.cs | 2 +- .../Delegates/LambdaShutdownDelegate.cs | 2 +- .../Envelopes/IRequestEnvelope.cs | 2 +- .../Envelopes/IResponseEnvelope.cs | 2 +- .../Features/IEventFeature.cs | 2 +- .../Features/IEventFeatureProviderFactory.cs | 2 +- .../Features/IEventFeatureT.cs | 2 +- .../Features/IFeatureCollection.cs | 2 +- .../Features/IFeatureProvider.cs | 2 +- .../Features/IInvocationDataFeature.cs | 2 +- .../Features/IResponseFeature.cs | 2 +- .../IResponseFeatureProviderFactory.cs | 2 +- .../Features/IResponseFeatureT.cs | 2 +- .../GlobalUsings.cs | 8 +- .../Options/EnvelopeOptions.cs | 4 +- src/MinimalLambda.Abstractions/README.md | 38 ++++----- .../MinimalLambda.Core.csproj | 6 +- src/MinimalLambda.Core/README.md | 30 +++---- .../build/AwsLambda.Host.targets | 2 +- .../LambdaOpenTelemetryAdapters.cs | 4 +- .../MiddlewareOpenTelemetryExtensions.cs | 4 +- .../OnShutdownOpenTelemetryExtensions.cs | 2 +- src/MinimalLambda.OpenTelemetry/README.md | 38 ++++----- .../AnalyzerReleases.Shipped.md | 8 +- .../AnalyzerReleases.Unshipped.md | 2 +- .../Diagnostics/Diagnostics.cs | 6 +- .../GeneratorConstants.cs | 4 +- src/MinimalLambda.SourceGenerators/README.md | 2 +- .../Extractors/HandlerInfoExtractor.cs | 2 +- ...daApplicationBuilderBuildSyntaxProvider.cs | 2 +- tasks/FormattingTasks.yml | 4 +- tasks/PublishTasks.yml | 6 +- tasks/TestTasks.yml | 2 +- .../AlbRequestEnvelopeTests.cs | 2 +- .../AlbResponseEnvelopeTests.cs | 2 +- .../ApiGatewayRequestEnvelopeTests.cs | 2 +- .../ApiGatewayResponseEnvelopeTests.cs | 2 +- .../ApiGatewayV2RequestEnvelopeTests.cs | 2 +- .../ApiGatewayV2ResponseEnvelopeTests.cs | 2 +- .../CloudWatchLogsEnvelopeTests.cs | 2 +- .../KafkaEnvelopeTests.cs | 4 +- .../KinesisEnvelopeTests.cs | 2 +- .../KinesisFirehoseEventEnvelopeTests.cs | 2 +- .../KinesisFirehoseResponseEnvelopeTests.cs | 2 +- .../SnsEnvelopeTests.cs | 2 +- .../SqsEnvelopeTests.cs | 2 +- .../SqsSnsEnvelopeTests.cs | 2 +- .../AutoNSubstituteDataAttribute.cs | 2 +- .../GlobalUsings.cs | 8 +- ...TelemetryServiceProviderExtensionsTests.cs | 2 +- .../MiddlewareOpenTelemetryExtensionsTest.cs | 2 +- .../DiagnosticTests.cs | 20 ++--- .../GeneratorTestHelpers.cs | 2 +- ...llInputSources#LambdaHandler.g.verified.cs | 2 +- ...tring_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...eturn_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...eInfo_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...rnExplicitType#LambdaHandler.g.verified.cs | 2 +- ...plicitNullable#LambdaHandler.g.verified.cs | 2 +- ...a_ReturnString#LambdaHandler.g.verified.cs | 2 +- ...turnTaskString#LambdaHandler.g.verified.cs | 2 +- ...sTask_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...StreamResponse#LambdaHandler.g.verified.cs | 2 +- ...ambda_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...mKeyedServices#LambdaHandler.g.verified.cs | 2 +- ...cellationToken#LambdaHandler.g.verified.cs | 2 +- ...dLambdaContext#LambdaHandler.g.verified.cs | 2 +- ...bdaHostContext#LambdaHandler.g.verified.cs | 4 +- ...rnExplicitTask#LambdaHandler.g.verified.cs | 2 +- ..._ComplexOutput#LambdaHandler.g.verified.cs | 2 +- ...a_ExplicitVoid#LambdaHandler.g.verified.cs | 2 +- ..._InputDi_Async#LambdaHandler.g.verified.cs | 2 +- ..._AsyncAndAwait#LambdaHandler.g.verified.cs | 2 +- ...erentNamespace#LambdaHandler.g.verified.cs | 2 +- ...da_InputStream#LambdaHandler.g.verified.cs | 2 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 2 +- ...nGenericObject#LambdaHandler.g.verified.cs | 2 +- ...lablePrimitive#LambdaHandler.g.verified.cs | 2 +- ...t_ReturnString#LambdaHandler.g.verified.cs | 2 +- ...plicitNullable#LambdaHandler.g.verified.cs | 2 +- ...plicitNullable#LambdaHandler.g.verified.cs | 2 +- ...rnExplicitTask#LambdaHandler.g.verified.cs | 2 +- ...rnExplicitType#LambdaHandler.g.verified.cs | 2 +- ...tingPointTypes#LambdaHandler.g.verified.cs | 2 +- ...IntAndLongKeys#LambdaHandler.g.verified.cs | 2 +- ...ice_OtherTypes#LambdaHandler.g.verified.cs | 2 +- ...llIntegerTypes#LambdaHandler.g.verified.cs | 2 +- ...ingAndEnumKeys#LambdaHandler.g.verified.cs | 2 +- ...edIntegerTypes#LambdaHandler.g.verified.cs | 2 +- ...dler_AsyncVoid#LambdaHandler.g.verified.cs | 2 +- ...turnTaskString#LambdaHandler.g.verified.cs | 2 +- ...iKeyedServices#LambdaHandler.g.verified.cs | 2 +- ...kBody_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...ypeCast_Static#LambdaHandler.g.verified.cs | 2 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 2 +- ...ler_ReturnTask#LambdaHandler.g.verified.cs | 2 +- ...turnTaskString#LambdaHandler.g.verified.cs | 2 +- ...traParentheses#LambdaHandler.g.verified.cs | 2 +- ...eturnTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...ler_AsyncAndDi#LambdaHandler.g.verified.cs | 2 +- ...UnexpectedType#LambdaHandler.g.verified.cs | 2 +- ...odHandler_NoDi#LambdaHandler.g.verified.cs | 2 +- ..._MultipleCalls#LambdaHandler.g.verified.cs | 2 +- ...OnInit_NoInput#LambdaHandler.g.verified.cs | 8 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 2 +- ...eturnAsyncBool#LambdaHandler.g.verified.cs | 2 +- ...put_ReturnBool#LambdaHandler.g.verified.cs | 2 +- ...otExpectedType#LambdaHandler.g.verified.cs | 2 +- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...pectedTypeTask#LambdaHandler.g.verified.cs | 2 +- ...ReturnTaskBool#LambdaHandler.g.verified.cs | 2 +- ...eferenceInputs#LambdaHandler.g.verified.cs | 2 +- ...bleKindOfInput#LambdaHandler.g.verified.cs | 2 +- ...PrimitiveInput#LambdaHandler.g.verified.cs | 2 +- ...nsImplicitVoid#LambdaHandler.g.verified.cs | 2 +- ..._MultipleCalls#LambdaHandler.g.verified.cs | 2 +- ...utdown_NoInput#LambdaHandler.g.verified.cs | 2 +- ...UnexpectedType#LambdaHandler.g.verified.cs | 2 +- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...pectedTypeTask#LambdaHandler.g.verified.cs | 2 +- ...eferenceInputs#LambdaHandler.g.verified.cs | 2 +- ...bleKindOfInput#LambdaHandler.g.verified.cs | 2 +- ...PrimitiveInput#LambdaHandler.g.verified.cs | 2 +- .../VerifyTests/BlockLambdaVerifyTests.cs | 48 +++++------ .../ExpressionLambdaVerifyTests.cs | 80 +++++++++---------- .../VerifyTests/KeyedServiceVerifyTests.cs | 24 +++--- .../VerifyTests/OnInitVerifyTests.cs | 64 +++++++-------- .../VerifyTests/OnShutdownVerifyTests.cs | 40 +++++----- .../VerifyTests/StaticMethodVerifyTests.cs | 36 ++++----- ...dlewareLambdaApplicationExtensionsTests.cs | 1 - .../Builder/LambdaApplicationBuilderTests.cs | 1 - .../Builder/LambdaApplicationTests.cs | 1 - .../Builder/LambdaInvocationBuilderTests.cs | 2 - .../Builder/LambdaOnInitBuilderTests.cs | 1 - .../Builder/LambdaOnShutdownBuilderTests.cs | 1 - .../Runtime/LambdaHandlerComposerTests.cs | 1 - 214 files changed, 674 insertions(+), 706 deletions(-) diff --git a/.github/workflows/main-build.yaml b/.github/workflows/main-build.yaml index 43364d8c..c34afd4d 100644 --- a/.github/workflows/main-build.yaml +++ b/.github/workflows/main-build.yaml @@ -75,7 +75,7 @@ jobs: ~/.sonar/scanner/dotnet-sonarscanner begin \ /k:"j-d-ha_aws-lambda-host" \ /o:"j-d-ha" \ - /d:sonar.exclusions="**/bin/**,**/obj/**,tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/**,**/coverage/**,**/.nuget/**,**/packages/**" \ + /d:sonar.exclusions="**/bin/**,**/obj/**,tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/**,**/coverage/**,**/.nuget/**,**/packages/**" \ /d:sonar.coverage.exclusions="**/*" \ /d:sonar.token="$SONAR_TOKEN" dotnet build --no-restore --configuration Release /p:TreatWarningsAsErrors=true diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index cd77cce8..097f9709 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -99,7 +99,7 @@ jobs: ~/.sonar/scanner/dotnet-sonarscanner begin \ /k:"j-d-ha_aws-lambda-host" \ /o:"j-d-ha" \ - /d:sonar.exclusions="**/bin/**,**/obj/**,tests/AwsLambda.Host.SourceGenerators.UnitTests/Snapshots/**,**/coverage/**,**/.nuget/**,**/packages/**" \ + /d:sonar.exclusions="**/bin/**,**/obj/**,tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/**,**/coverage/**,**/.nuget/**,**/packages/**" \ /d:sonar.coverage.exclusions="**/*" \ /d:sonar.token="$SONAR_TOKEN" diff --git a/.gitignore b/.gitignore index 9bf17d8e..e03b3d9e 100644 --- a/.gitignore +++ b/.gitignore @@ -75,7 +75,7 @@ nunit-*.xml **/*.env **/node_modules/ -/benchmarks/AwsLambda.Host.Benchmarks/BenchmarkDotNet.Artifacts/ +/benchmarks/MinimalLambda.Benchmarks/BenchmarkDotNet.Artifacts/ /nupkg/ /temp.md /.claude/ diff --git a/.grenrc.js b/.grenrc.js index 80540865..6f91a4a2 100644 --- a/.grenrc.js +++ b/.grenrc.js @@ -19,11 +19,11 @@ ${variables.body} ## Packages All 3 packages are included in this release: -- \`AwsLambda.Host\` -- \`AwsLambda.Host.Abstractions\` -- \`AwsLambda.Host.OpenTelemetry\` +- \`MinimalLambda\` +- \`MinimalLambda.Abstractions\` +- \`MinimalLambda.OpenTelemetry\` -These packages have been automatically published to [NuGet.org](https://www.nuget.org/packages?q=AwsLambda.Host). +These packages have been automatically published to [NuGet.org](https://www.nuget.org/packages?q=MinimalLambda). --- diff --git a/CLAUDE.md b/CLAUDE.md index c526c876..55666030 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -193,9 +193,9 @@ messages): All 3 packages are versioned synchronously: -- `AwsLambda.Host` -- `AwsLambda.Host.Abstractions` -- `AwsLambda.Host.OpenTelemetry` +- `MinimalLambda` +- `MinimalLambda.Abstractions` +- `MinimalLambda.OpenTelemetry` Versions are stored in `/Directory.Build.props` as ``. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 791b926c..6137992e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -80,7 +80,7 @@ The project uses two complementary tools: 1. **CleanupCode**: JetBrains code cleanup tool - Applies code organization and style rules - - Uses the "Built-in: Full Cleanup" profile configured in `AwsLambda.Host.sln.DotSettings` + - Uses the "Built-in: Full Cleanup" profile configured in `MinimalLambda.sln.DotSettings` - Handles code structure and consistency 2. **CSharpier**: Opinionated C# code formatter @@ -115,7 +115,7 @@ fail, as the GitHub Actions workflow (`pr-build.yaml`) includes a code quality c If you're using **JetBrains Rider** or **Visual Studio** with ReSharper: -- The solution includes `AwsLambda.Host.sln.DotSettings` with formatting rules +- The solution includes `MinimalLambda.sln.DotSettings` with formatting rules - Format on save can be configured in your IDE settings - This ensures consistency even before running Task commands @@ -212,7 +212,7 @@ when using extension method syntax. ### C# Conventions - **Indentation**: 4 spaces -- **File-scoped namespaces**: Use `namespace AwsLambda.Host;` format +- **File-scoped namespaces**: Use `namespace MinimalLambda;` format - **Nullable reference types**: Always enabled (`enable`) - **Modern syntax**: Use records, top-level statements, and nullable annotations where appropriate - **Line length**: Keep to 100 characters when practical @@ -288,7 +288,7 @@ public class LambdaApplicationTest dotnet test # Run tests for specific project -dotnet test tests/AwsLambda.Host.UnitTests +dotnet test tests/MinimalLambda.UnitTests # Run with verbose output dotnet test --verbosity detailed diff --git a/README.md b/README.md index 7feed6a4..c27d5b95 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AwsLambda.Host +# MinimalLambda [![Main Build](https://github.com/j-d-ha/aws-lambda-host/actions/workflows/main-build.yaml/badge.svg)](https://github.com/j-d-ha/aws-lambda-host/actions/workflows/main-build.yaml) [![codecov](https://codecov.io/gh/j-d-ha/aws-lambda-host/graph/badge.svg?token=BWORPTQ0UK)](https://codecov.io/gh/j-d-ha/aws-lambda-host) @@ -43,9 +43,9 @@ for building AWS Lambda functions. | Package | NuGet | Downloads | |----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](./src/AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](./src/AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](./src/AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | +| [**MinimalLambda**](./src/MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](./src/MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](./src/MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | ### Envelopes Packages @@ -54,14 +54,14 @@ including SQS, SNS, API Gateway, Kinesis, and more. | Package | NuGet | Downloads | |------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host.Envelopes.Sqs**](./AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](./AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](./AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](./AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](./AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](./AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](./AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](./AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda.Envelopes.Sqs**](./MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](./MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](./MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](./MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](./MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](./MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](./MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](./MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | Each package has detailed documentation in its own README file. @@ -70,13 +70,13 @@ Each package has detailed documentation in its own README file. Install the NuGet package: ```bash -dotnet add package AwsLambda.Host +dotnet add package MinimalLambda ``` Create a simple Lambda handler with dependency injection: ```csharp -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -109,10 +109,10 @@ OpenTelemetry integration. ## Documentation -- [AwsLambda.Host](./src/AwsLambda.Host/README.md) – Core framework documentation -- [AwsLambda.Host.Abstractions](./src/AwsLambda.Host.Abstractions/README.md) – Interfaces and +- [MinimalLambda](./src/MinimalLambda/README.md) – Core framework documentation +- [MinimalLambda.Abstractions](./src/MinimalLambda.Abstractions/README.md) – Interfaces and abstractions -- [AwsLambda.Host.OpenTelemetry](./src/AwsLambda.Host.OpenTelemetry/README.md) – Observability +- [MinimalLambda.OpenTelemetry](./src/MinimalLambda.OpenTelemetry/README.md) – Observability documentation - [Examples](./examples/) – Sample Lambda functions demonstrating framework features diff --git a/docs/advanced/index.md b/docs/advanced/index.md index 9ec02e9e..d19c438c 100644 --- a/docs/advanced/index.md +++ b/docs/advanced/index.md @@ -1,5 +1,5 @@ # Advanced Topics -> Coming soon: guidance on Native AOT, source generator internals, and performance tuning for `AwsLambda.Host`. +> Coming soon: guidance on Native AOT, source generator internals, and performance tuning for `MinimalLambda`. We're working on detailed content for advanced scenarios. In the meantime, follow the repository's CHANGELOG and GitHub discussions for early tips. diff --git a/docs/features/envelopes.md b/docs/features/envelopes.md index d44b9528..065e3735 100644 --- a/docs/features/envelopes.md +++ b/docs/features/envelopes.md @@ -26,14 +26,14 @@ Install only the envelopes you need; each one lives in its own NuGet package. | Event Source | Package | NuGet | |---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| SQS | [AwsLambda.Host.Envelopes.Sqs](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.Sqs) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | -| SNS | [AwsLambda.Host.Envelopes.Sns](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.Sns) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | -| API Gateway / HTTP API | [AwsLambda.Host.Envelopes.ApiGateway](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.ApiGateway) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | -| Kinesis Data Streams | [AwsLambda.Host.Envelopes.Kinesis](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.Kinesis) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | -| Kinesis Data Firehose | [AwsLambda.Host.Envelopes.KinesisFirehose](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | -| Kafka (MSK / self-managed) | [AwsLambda.Host.Envelopes.Kafka](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.Kafka) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | -| CloudWatch Logs | [AwsLambda.Host.Envelopes.CloudWatchLogs](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | -| Application Load Balancer (ALB) | [AwsLambda.Host.Envelopes.Alb](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/AwsLambda.Host.Envelopes.Alb) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | +| SQS | [MinimalLambda.Envelopes.Sqs](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Sqs) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | +| SNS | [MinimalLambda.Envelopes.Sns](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Sns) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | +| API Gateway / HTTP API | [MinimalLambda.Envelopes.ApiGateway](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.ApiGateway) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | +| Kinesis Data Streams | [MinimalLambda.Envelopes.Kinesis](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Kinesis) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | +| Kinesis Data Firehose | [MinimalLambda.Envelopes.KinesisFirehose](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | +| Kafka (MSK / self-managed) | [MinimalLambda.Envelopes.Kafka](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Kafka) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | +| CloudWatch Logs | [MinimalLambda.Envelopes.CloudWatchLogs](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | +| Application Load Balancer (ALB) | [MinimalLambda.Envelopes.Alb](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Alb) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | Each package ships with README examples in the repository if you need event-specific guidance. @@ -44,13 +44,13 @@ handler. This SQS example demonstrates the pattern; swap `SqsEnvelope` with a to handle SNS, API Gateway, etc. ```bash -dotnet add package AwsLambda.Host.Envelopes.Sqs +dotnet add package MinimalLambda.Envelopes.Sqs ``` ```csharp title="Program.cs" linenums="1" using Amazon.Lambda.SQSEvents; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.Sqs; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.Sqs; var builder = LambdaApplication.CreateBuilder(); var lambda = builder.Build(); @@ -127,8 +127,8 @@ the extraction logic. ```csharp title="CustomRequestEnvelope.cs" linenums="1" using System.Text.Json; using System.Text.Json.Serialization; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Envelopes; +using MinimalLambda.Options; public sealed class CustomRequestEnvelope : IRequestEnvelope { diff --git a/docs/features/index.md b/docs/features/index.md index 06dfbcb2..43fc44bf 100644 --- a/docs/features/index.md +++ b/docs/features/index.md @@ -1,6 +1,6 @@ # Features -The `AwsLambda.Host` framework provides a rich ecosystem of features and extension packages that enhance AWS Lambda development beyond the core framework capabilities. These features are designed to be modular, type-safe, and performant, integrating seamlessly with the core hosting patterns. +The `MinimalLambda` framework provides a rich ecosystem of features and extension packages that enhance AWS Lambda development beyond the core framework capabilities. These features are designed to be modular, type-safe, and performant, integrating seamlessly with the core hosting patterns. This section provides an overview of the available features. diff --git a/docs/features/open_telemetry.md b/docs/features/open_telemetry.md index f75a64d7..18df1cc4 100644 --- a/docs/features/open_telemetry.md +++ b/docs/features/open_telemetry.md @@ -2,7 +2,7 @@ ## What is OpenTelemetry Integration? -The `AwsLambda.Host.OpenTelemetry` package provides seamless integration with the official [`OpenTelemetry.Instrumentation.AWSLambda`](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.AWSLambda) package. It acts as a smart adapter layer for `AwsLambda.Host`, using **C# 12 interceptors and source generation** to automatically instrument your Lambda handlers with minimal overhead. +The `MinimalLambda.OpenTelemetry` package provides seamless integration with the official [`OpenTelemetry.Instrumentation.AWSLambda`](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.AWSLambda) package. It acts as a smart adapter layer for `MinimalLambda`, using **C# 12 interceptors and source generation** to automatically instrument your Lambda handlers with minimal overhead. At compile time, it wraps your handler invocation in a root trace span, providing reflection-free, high-performance distributed tracing. @@ -27,7 +27,7 @@ Install the OpenTelemetry integration package and any required exporter packages ```bash # Core integration package -dotnet add package AwsLambda.Host.OpenTelemetry +dotnet add package MinimalLambda.OpenTelemetry # Common packages for OTLP export dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol @@ -42,7 +42,7 @@ dotnet add package OpenTelemetry.Contrib.Extensions.AWSXRay This example demonstrates how to add basic OpenTelemetry instrumentation to your Lambda function. ```csharp title="Program.cs" linenums="1" -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -106,7 +106,7 @@ internal record Response(string Message); !!! tip OpenTelemetry tracing can be configured in multiple ways, including manually creating a trace provider using the [OpenTelemetry](https://www.nuget.org/packages/OpenTelemetry), or through registering OpenTelemetry services in your DI container using [OpenTelemetry.Extensions.Hosting](https://www.nuget.org/packages/OpenTelemetry.Extensions.Hosting). - When working with `AwsLambda.Host`, its recommended to the latter approach and as such, this documentation focuses on it. + When working with `MinimalLambda`, its recommended to the latter approach and as such, this documentation focuses on it. --- @@ -128,13 +128,13 @@ The shutdown helpers (`OnShutdownFlushOpenTelemetry`, `OnShutdownFlushTracer`, a --- -## Working With `AwsLambda.Host.OpenTelemetry` +## Working With `MinimalLambda.OpenTelemetry` ### Configuration Configuration is done using the standard OpenTelemetry .NET SDK extension methods on `IServiceCollection`. Official documentation for these methods can be found [here](https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Extensions.Hosting/README.md). -`AwsLambda.Host.OpenTelemetry` expectes for an instance of `TracerProvider` to be registered in the DI container as this provider is used by `OpenTelemetry.Instrumentation.AWSLambda`. As such, it is your responsibility to configure the OpenTelemetry provider and ensure it is registered in the DI container. If it is not, an exception will be thrown at startup. +`MinimalLambda.OpenTelemetry` expectes for an instance of `TracerProvider` to be registered in the DI container as this provider is used by `OpenTelemetry.Instrumentation.AWSLambda`. As such, it is your responsibility to configure the OpenTelemetry provider and ensure it is registered in the DI container. If it is not, an exception will be thrown at startup. ### Instrumenting The Invocation Pipeline @@ -162,7 +162,7 @@ Because the middleware reads event and response types dynamically from the featu The OpenTelemetry `TracerProvider` and `MeterProvider` services both implement `IDisposable`. When the dependency injection container is disposed of during a normal application shutdown, it should trigger these providers to automatically flush any buffered telemetry. However, in a serverless environment where the lifecycle can be abrupt, this disposal is not always guaranteed to complete before the execution environment is frozen. -For situations where you notice data being dropped, or if you want to guarantee a flush attempt is made, `AwsLambda.Host.OpenTelemetry` provides the following explicit helper methods. They register a function during the application's shutdown phase to manually force-flush pending telemetry. +For situations where you notice data being dropped, or if you want to guarantee a flush attempt is made, `MinimalLambda.OpenTelemetry` provides the following explicit helper methods. They register a function during the application's shutdown phase to manually force-flush pending telemetry. The following methods are available to be called on the `LambdaApplication` instance: @@ -186,12 +186,12 @@ All three methods also accept an optional `timeoutMilliseconds` parameter. This ## Manual Instrumentation -`AwsLambda.Host.OpenTelemetry` helps you instrement your Lambda handlers with [OpenTelemetry.Instrumentation.AWSLambda](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.AWSLambda), but to get the most out of observability, you should add custom instrumentation to your application code. In this section we cover how this can be done easily with the Dependancy Injection support provided by `AwsLambda.Host`. +`MinimalLambda.OpenTelemetry` helps you instrement your Lambda handlers with [OpenTelemetry.Instrumentation.AWSLambda](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.AWSLambda), but to get the most out of observability, you should add custom instrumentation to your application code. In this section we cover how this can be done easily with the Dependancy Injection support provided by `MinimalLambda`. !!! note - This code is not specific to `AwsLambda.Host.OpenTelemetry` and follows the guidlines provided by Microsoft's [.NET distributed tracing documetation](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing). + This code is not specific to `MinimalLambda.OpenTelemetry` and follows the guidlines provided by Microsoft's [.NET distributed tracing documetation](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing). -A full working example of an instrumented Lambda application can be found [on GitHub](https://github.com/j-d-ha/aws-lambda-host/tree/main/examples/AwsLambda.Host.Example.OpenTelemetry). +A full working example of an instrumented Lambda application can be found [on GitHub](https://github.com/j-d-ha/aws-lambda-host/tree/main/examples/MinimalLambda.Example.OpenTelemetry). ### Custom Instrumentation Class @@ -200,7 +200,7 @@ The [.NET distributed tracing guidance](https://learn.microsoft.com/en-us/dotnet ```csharp title="Instrumentation.cs" linenums="1" using System.Diagnostics; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; /// /// It is recommended to use a custom type to hold references for ActivitySource. This avoids @@ -227,7 +227,7 @@ Metrics follow a similar pattern: create a class that receives an `IMeterFactory ```csharp title="NameMetrics.cs" linenums="1" using System.Diagnostics.Metrics; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; public class NameMetrics { @@ -253,7 +253,7 @@ Once the reusable helpers exist, wrap service logic in spans to capture timing, ```csharp title="NameService.cs" linenums="1" using System.Diagnostics; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; internal class NameService(Instrumentation instrumentation, NameMetrics nameMetrics) { @@ -280,12 +280,12 @@ The `using var activity = ...` pattern mirrors the BCL samples and guarantees sp ### Instrument A Handler -Finally, surface the custom instrumentation inside your Lambda handler. `AwsLambda.Host` injects any registered services, so you can receive both `IService` and `Instrumentation` directly in the handler signature. +Finally, surface the custom instrumentation inside your Lambda handler. `MinimalLambda` injects any registered services, so you can receive both `IService` and `Instrumentation` directly in the handler signature. ```csharp title="Function.cs" linenums="1" -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; -namespace AwsLambda.Host.Example.OpenTelemetry; +namespace MinimalLambda.Example.OpenTelemetry; internal static class Function { diff --git a/docs/getting-started/core-concepts.md b/docs/getting-started/core-concepts.md index ea3b47e9..dac98352 100644 --- a/docs/getting-started/core-concepts.md +++ b/docs/getting-started/core-concepts.md @@ -1,10 +1,10 @@ # Core Concepts -This guide explains how `AwsLambda.Host` stitches together the Lambda lifecycle, dependency injection, middleware, and source generation. Knowing these building blocks makes it easier to reason about performance, testing, and extensibility as your functions grow. +This guide explains how `MinimalLambda` stitches together the Lambda lifecycle, dependency injection, middleware, and source generation. Knowing these building blocks makes it easier to reason about performance, testing, and extensibility as your functions grow. ## The Lambda Lifecycle -An execution environment progresses through distinct stages. `AwsLambda.Host` exposes each one so you can opt into work at the right time. +An execution environment progresses through distinct stages. `MinimalLambda` exposes each one so you can opt into work at the right time. ``` Cold Start β†’ OnInit β†’ Invocation 1..N β†’ OnShutdown β†’ Termination @@ -43,13 +43,13 @@ lambda.OnInit(async ( ### Invocation Pipeline -Every event runs through the middleware pipeline and handler you registered with `MapHandler`. `AwsLambda.Host` creates a scoped service provider, sets up features, and links the cancellation token to the Lambda timeout. +Every event runs through the middleware pipeline and handler you registered with `MapHandler`. `MinimalLambda` creates a scoped service provider, sets up features, and links the cancellation token to the Lambda timeout. **Invocation steps:** 1. Lambda runtime delivers the JSON payload. 2. The generated handler deserializes it (if you marked a parameter with `[Event]`). -3. `AwsLambda.Host` creates a scoped `IServiceProvider` for the invocation. +3. `MinimalLambda` creates a scoped `IServiceProvider` for the invocation. 4. Middleware executes in the order it was registered. 5. Your handler runs and can resolve services/contexts from DI. 6. The response is captured through `IResponseFeature` and serialized via the configured `ILambdaSerializer`. @@ -104,7 +104,7 @@ graph LR ## Dependency Injection Fundamentals -`AwsLambda.Host` uses the standard `Microsoft.Extensions.DependencyInjection` container. Registrations happen before `builder.Build()`, and the framework aligns service lifetimes with the Lambda lifecycle. +`MinimalLambda` uses the standard `Microsoft.Extensions.DependencyInjection` container. Registrations happen before `builder.Build()`, and the framework aligns service lifetimes with the Lambda lifecycle. | Lifetime | Created | Disposed | Use for | |-----------|--------------------------------------|-------------------------------------------|---------------------------------------------| @@ -158,7 +158,7 @@ Handlers and lifecycle hooks can request multiple parameter types simultaneously ## Middleware Pipeline -Middleware composes the invocation pipeline. Register delegates before `MapHandler`; `AwsLambda.Host` wraps them around the handler in the order you specify. +Middleware composes the invocation pipeline. Register delegates before `MapHandler`; `MinimalLambda` wraps them around the handler in the order you specify. ```csharp title="Program.cs" linenums="1" lambda.UseMiddleware(async (context, next) => @@ -198,7 +198,7 @@ Built-in feature types include: Features are created lazily. When `context.Features.Get()` executes, the framework asks each registered `IFeatureProvider` whether it can build the requested typeβ€”similar to ASP.NET Core’s feature providers. ```csharp title="Program.cs" linenums="1" -using AwsLambda.Host.Abstractions.Features; +using MinimalLambda.Abstractions.Features; lambda.UseMiddleware(async (context, next) => { @@ -222,7 +222,7 @@ Register `IFeatureProvider` implementations to add your own features or override ```csharp title="DefaultResponseFeatureProvider.cs" linenums="1" using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides a default implementation of for Lambda response diff --git a/docs/getting-started/first-lambda.md b/docs/getting-started/first-lambda.md index 0bccdfdc..edf362e8 100644 --- a/docs/getting-started/first-lambda.md +++ b/docs/getting-started/first-lambda.md @@ -1,6 +1,6 @@ # Your First Lambda Function -This tutorial walks you through building, testing, and deploying a complete Lambda function using `AwsLambda.Host`. You'll create a greeting service that demonstrates dependency injection, middleware, and type-safe handlers. +This tutorial walks you through building, testing, and deploying a complete Lambda function using `MinimalLambda`. You'll create a greeting service that demonstrates dependency injection, middleware, and type-safe handlers. ## What We'll Build @@ -17,7 +17,7 @@ A greeting service Lambda function with: Before starting, ensure you've completed the [Installation](installation.md) guide and have: -- `AwsLambda.Host` NuGet package installed +- `MinimalLambda` NuGet package installed - Project file properly configured - .NET 8 SDK installed @@ -98,7 +98,7 @@ public class GreetingService : IGreetingService Set up the Lambda application builder and register your services with dependency injection. ```csharp title="Program.cs (continued)" -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -188,7 +188,7 @@ Here's the complete code all together: using System; using System.Collections.Generic; using System.Text.Json.Serialization; -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -573,7 +573,7 @@ sequenceDiagram **Error**: `The [Event] attribute is not recognized` -**Solution**: Add `using AwsLambda.Host.Builder;` to the top of your file (or fully qualify `[AwsLambda.Host.Builder.Event]`). The attribute ships with the `AwsLambda.Host` packageβ€”no additional project configuration is required. +**Solution**: Add `using MinimalLambda.Builder;` to the top of your file (or fully qualify `[MinimalLambda.Builder.Event]`). The attribute ships with the `MinimalLambda` packageβ€”no additional project configuration is required. ### Timeout Errors @@ -594,7 +594,7 @@ sequenceDiagram Congratulations! You've built and deployed a complete Lambda function. You now understand: -- βœ… How to structure Lambda functions with `AwsLambda.Host` +- βœ… How to structure Lambda functions with `MinimalLambda` - βœ… Defining strongly-typed request/response models - βœ… Creating and registering services with dependency injection - βœ… Adding middleware for cross-cutting concerns diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md index dc979945..8d3f14f7 100644 --- a/docs/getting-started/index.md +++ b/docs/getting-started/index.md @@ -1,8 +1,8 @@ # Getting Started -**`AwsLambda.Host`** brings ASP.NET Core–style hosting, dependency injection, and middleware to AWS Lambda. Instead of wiring up serialization and context handling manually, you configure a Lambda-specific host that manages scopes, middleware, and strongly typed handlers at compile time. +**`MinimalLambda`** brings ASP.NET Core–style hosting, dependency injection, and middleware to AWS Lambda. Instead of wiring up serialization and context handling manually, you configure a Lambda-specific host that manages scopes, middleware, and strongly typed handlers at compile time. -### Why `AwsLambda.Host`? +### Why `MinimalLambda`? - **Familiar patterns** – Builder APIs, DI, and middleware mirror ASP.NET Core. - **Source-generated handlers** – Avoid reflection while staying AOT ready. diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index ef6fb78f..5e393a6d 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -1,6 +1,6 @@ # Installation -This guide walks you through installing `AwsLambda.Host` and configuring your project to build Lambda functions. +This guide walks you through installing `MinimalLambda` and configuring your project to build Lambda functions. ## System Requirements @@ -27,17 +27,17 @@ Choose your preferred installation method: dotnet new console -n MyFirstLambda cd MyFirstLambda - # Add the AwsLambda.Host package - dotnet add package AwsLambda.Host + # Add the MinimalLambda package + dotnet add package MinimalLambda ``` - *Tip: the `examples/AwsLambda.Host.Example.HelloWorld` project in this repo shows a fully configured Lambda app if you prefer copying a working template.* + *Tip: the `examples/MinimalLambda.Example.HelloWorld` project in this repo shows a fully configured Lambda app if you prefer copying a working template.* === "Visual Studio" 1. Right-click on your project in Solution Explorer 2. Select **Manage NuGet Packages** - 3. Search for `AwsLambda.Host` + 3. Search for `MinimalLambda` 4. Click **Install** === "Package Reference" @@ -46,7 +46,7 @@ Choose your preferred installation method: ```xml - + ``` @@ -118,13 +118,13 @@ Here's a complete, minimal `.csproj` file for a Lambda function: - + ``` !!! info "Source Generators" - The `AwsLambda.Host` package ships an MSBuild target that automatically registers the required interceptor namespaces. No additional configuration is needed in your project file. + The `MinimalLambda` package ships an MSBuild target that automatically registers the required interceptor namespaces. No additional configuration is needed in your project file. ## Verifying Installation @@ -135,7 +135,7 @@ Let's verify everything is set up correctly by creating a simple Lambda function Create a `Program.cs` file with this minimal example: ```csharp title="Program.cs" linenums="1" -using AwsLambda.Host; +using MinimalLambda; var builder = LambdaApplication.CreateBuilder(); var lambda = builder.Build(); @@ -174,15 +174,15 @@ Build succeeded. ## Package Overview -The `AwsLambda.Host` framework includes multiple packages for different use cases: +The `MinimalLambda` framework includes multiple packages for different use cases: ### Core Packages | Package | Purpose | When to Use | |----------------------------------|---------------------------|-----------------------------------------------| -| **AwsLambda.Host** | Core framework | Required for all Lambda functions | -| **AwsLambda.Host.Abstractions** | Interfaces and contracts | When creating custom extensions or middleware | -| **AwsLambda.Host.OpenTelemetry** | Observability integration | When you need distributed tracing and metrics | +| **MinimalLambda** | Core framework | Required for all Lambda functions | +| **MinimalLambda.Abstractions** | Interfaces and contracts | When creating custom extensions or middleware | +| **MinimalLambda.OpenTelemetry** | Observability integration | When you need distributed tracing and metrics | ### Envelope Packages @@ -190,17 +190,17 @@ Envelope packages provide type-safe, strongly-typed event handling for specific | Package | Event Source | When to Use | |----------------------------------------------|---------------------------|-------------------------------| -| **AwsLambda.Host.Envelopes.Sqs** | Amazon SQS | Processing SQS queue messages | -| **AwsLambda.Host.Envelopes.Sns** | Amazon SNS | Handling SNS notifications | -| **AwsLambda.Host.Envelopes.ApiGateway** | API Gateway | Building REST/HTTP APIs | -| **AwsLambda.Host.Envelopes.Kinesis** | Kinesis Data Streams | Processing stream records | -| **AwsLambda.Host.Envelopes.KinesisFirehose** | Kinesis Firehose | Transforming Firehose data | -| **AwsLambda.Host.Envelopes.Kafka** | Apache Kafka / MSK | Processing Kafka messages | -| **AwsLambda.Host.Envelopes.CloudWatchLogs** | CloudWatch Logs | Processing log subscriptions | -| **AwsLambda.Host.Envelopes.Alb** | Application Load Balancer | ALB target Lambda functions | +| **MinimalLambda.Envelopes.Sqs** | Amazon SQS | Processing SQS queue messages | +| **MinimalLambda.Envelopes.Sns** | Amazon SNS | Handling SNS notifications | +| **MinimalLambda.Envelopes.ApiGateway** | API Gateway | Building REST/HTTP APIs | +| **MinimalLambda.Envelopes.Kinesis** | Kinesis Data Streams | Processing stream records | +| **MinimalLambda.Envelopes.KinesisFirehose** | Kinesis Firehose | Transforming Firehose data | +| **MinimalLambda.Envelopes.Kafka** | Apache Kafka / MSK | Processing Kafka messages | +| **MinimalLambda.Envelopes.CloudWatchLogs** | CloudWatch Logs | Processing log subscriptions | +| **MinimalLambda.Envelopes.Alb** | Application Load Balancer | ALB target Lambda functions | !!! info "Envelope Packages" - You only need envelope packages if you're working with those specific event sources. For simple use cases, just `AwsLambda.Host` is sufficient. Learn more in the [Envelopes documentation](../features/envelopes.md). + You only need envelope packages if you're working with those specific event sources. For simple use cases, just `MinimalLambda` is sufficient. Learn more in the [Envelopes documentation](../features/envelopes.md). ## Troubleshooting @@ -236,7 +236,7 @@ If you encounter issues not covered here: ## Next Steps -Now that you have `AwsLambda.Host` installed and verified, you're ready to build your first Lambda function! +Now that you have `MinimalLambda` installed and verified, you're ready to build your first Lambda function! **β†’ Continue to [Your First Lambda](first-lambda.md)** to build a complete Lambda function step-by-step. diff --git a/docs/guides/configuration.md b/docs/guides/configuration.md index 8b9c23dd..ea5d38da 100644 --- a/docs/guides/configuration.md +++ b/docs/guides/configuration.md @@ -1,6 +1,6 @@ # Configuration -`AwsLambda.Host` embraces the same configuration primitives as the rest of .NET: `IConfiguration` aggregates +`MinimalLambda` embraces the same configuration primitives as the rest of .NET: `IConfiguration` aggregates settings from files and environment variables, and options bind those settings into strongly typed objects. On top of that, `LambdaHostOptions` control the Lambda-specific runtime behavior (timeouts, shutdown windows, serializer choices, etc.). This guide covers both layers. @@ -126,7 +126,7 @@ lambda.MapHandler(async ([Event] Order order, IOrderService service, Cancellatio ### `ShutdownDuration` and `ShutdownDurationBuffer` Lambda signals shutdown with SIGTERM and later SIGKILL. Configure how long you expect to have between -those signals and how much buffer `AwsLambda.Host` should reserve before cancelling `OnShutdown` +those signals and how much buffer `MinimalLambda` should reserve before cancelling `OnShutdown` handlers. ```csharp title="Program.cs" linenums="1" @@ -151,7 +151,7 @@ Choose from the provided constants when possible: The .NET Lambda runtime captures stdout/stderr and wraps each line with its own structured record. When you rely on structured loggers (Serilog, MEL JSON) or run locally, disable that extra formatting. -`AwsLambda.Host` registers the built-in OnInit handler automatically when this option is `true`. +`MinimalLambda` registers the built-in OnInit handler automatically when this option is `true`. ```csharp title="Program.cs" linenums="1" builder.Services.ConfigureLambdaHostOptions(options => @@ -319,7 +319,7 @@ builder.Services.Configure(options => ## JSON Serialization Configuration -`AwsLambda.Host` defaults to `System.Text.Json` with camelCase naming, case-insensitive reads, and +`MinimalLambda` defaults to `System.Text.Json` with camelCase naming, case-insensitive reads, and null-value ignoring. Because the Lambda serializer is an `ILambdaSerializer` singleton, you configure it by registering the serializer instance you want (either the built-in `DefaultLambdaJsonSerializer` with custom `JsonSerializerOptions` or your own implementation). diff --git a/docs/guides/dependency-injection.md b/docs/guides/dependency-injection.md index 726a75d6..f2eaea79 100644 --- a/docs/guides/dependency-injection.md +++ b/docs/guides/dependency-injection.md @@ -147,4 +147,4 @@ lambda.MapHandler(( - Use the options pattern for config and keyed services for multiple implementations. - For fundamentals, refer back to the [official DI docs](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection). -With these patterns, `AwsLambda.Host` feels just like ASP.NET Core, but tuned for the Lambda lifecycle. +With these patterns, `MinimalLambda` feels just like ASP.NET Core, but tuned for the Lambda lifecycle. diff --git a/docs/guides/error-handling.md b/docs/guides/error-handling.md index 00ef16dc..bb44acfc 100644 --- a/docs/guides/error-handling.md +++ b/docs/guides/error-handling.md @@ -1,13 +1,13 @@ # Error Handling -`AwsLambda.Host` does not hide exceptionsβ€”it embraces the standard .NET model so you can decide where +`MinimalLambda` does not hide exceptionsβ€”it embraces the standard .NET model so you can decide where to intercept failures. This guide explains how errors flow through handlers, middleware, and lifecycle hooks so you can add the right amount of protection without fighting the framework. ## Invocation Errors: What Happens by Default - Handlers run inside the middleware pipeline. If a handler throws and nothing catches the exception, - `AwsLambda.Host` lets it bubble back through the pipeline. + `MinimalLambda` lets it bubble back through the pipeline. - Once the exception leaves the outermost middleware, the AWS .NET Lambda runtime records the error, writes it to CloudWatch Logs, and returns a failed invocation (with retries governed by the event source). @@ -82,7 +82,7 @@ lambda.MapHandler(async ([Event] CheckoutRequest request, ICheckoutService servi handler executes in its own DI scope and errors are aggregated: - **OnInit** – All handlers run concurrently with a token derived from - `LambdaHostOptions.InitTimeout`. Each handler can optionally return `bool`. `AwsLambda.Host` collects + `LambdaHostOptions.InitTimeout`. Each handler can optionally return `bool`. `MinimalLambda` collects every exception and throws an `AggregateException("Encountered errors while running OnInit handlers", …)` if any fail. If a handler returns `false`, initialization aborts even when no exception occurred. - **OnShutdown** – Handlers also run concurrently. Any exception is captured and rethrown as an @@ -106,7 +106,7 @@ Because the host rethrows aggregate exceptions, CloudWatch logs clearly show eve ## Timeouts and Cancellation -`AwsLambda.Host` links invocation tokens to the Lambda timeout using +`MinimalLambda` links invocation tokens to the Lambda timeout using `LambdaHostOptions.InvocationCancellationBuffer`. Honor that token in services and middlewareβ€”if your code catches `OperationCanceledException`, log and rethrow so the runtime still marks the invocation as failed rather than silently succeeding. diff --git a/docs/guides/handler-registration.md b/docs/guides/handler-registration.md index 0c8241ad..f590a6bb 100644 --- a/docs/guides/handler-registration.md +++ b/docs/guides/handler-registration.md @@ -1,11 +1,11 @@ # Handler Registration -`MapHandler` is the entry point for telling `AwsLambda.Host` which delegate should process events. The call looks like an ordinary lambda registration, but source generators intercept it at compile time to wire up serialization, dependency injection, and middleware without reflection. +`MapHandler` is the entry point for telling `MinimalLambda` which delegate should process events. The call looks like an ordinary lambda registration, but source generators intercept it at compile time to wire up serialization, dependency injection, and middleware without reflection. ## Registering a Handler ```csharp title="Program.cs" linenums="1" -using AwsLambda.Host; +using MinimalLambda; using Microsoft.Extensions.DependencyInjection; var builder = LambdaApplication.CreateBuilder(); @@ -84,7 +84,7 @@ await lambda.RunAsync(); ## Handler Signatures and the `[Event]` Parameter -Handlers that receive an incoming payload must identify exactly one parameter with `[Event]`. The generator uses that marker to synthesize deserialization logic (JSON by default, or whatever envelope/serializer is active). If your Lambda does **not** expect input (e.g., scheduled jobs, health checks, etc.), you can omit the `[Event]` attribute entirelyβ€”just define a handler with no payload parameter and `AwsLambda.Host` skips the event binding phase. +Handlers that receive an incoming payload must identify exactly one parameter with `[Event]`. The generator uses that marker to synthesize deserialization logic (JSON by default, or whatever envelope/serializer is active). If your Lambda does **not** expect input (e.g., scheduled jobs, health checks, etc.), you can omit the `[Event]` attribute entirelyβ€”just define a handler with no payload parameter and `MinimalLambda` skips the event binding phase. - `[Event]` may appear on reference types, structs, records, collection types, or envelope types such as `ApiGatewayRequestEnvelope`. - Handlers without payloads can simply omit `[Event]` by not declaring an event parameter at all. @@ -191,7 +191,7 @@ At runtime: ## Patterns and Best Practices - Keep handlers thin. Delegate business logic to services so you can test them outside Lambda and reuse them across handlers. -- Respect the provided `CancellationToken`; `AwsLambda.Host` fires it `InvocationCancellationBuffer` before the hard Lambda timeout. +- Respect the provided `CancellationToken`; `MinimalLambda` fires it `InvocationCancellationBuffer` before the hard Lambda timeout. - Prefer strongly typed responses or envelopes instead of anonymous objectsβ€”serialization contracts stay predictable and versionable. - Use `ILambdaHostContext.Features` (e.g., `context.GetEvent()`) to decouple middleware from handlers when you need shared metadata. - Avoid resolving services manually from `IServiceProvider` unless absolutely necessary. Let the generator inject what you need, or expose a dedicated facade service. diff --git a/docs/guides/hosting.md b/docs/guides/hosting.md index 2bbb7e0c..78f775ec 100644 --- a/docs/guides/hosting.md +++ b/docs/guides/hosting.md @@ -17,7 +17,7 @@ Calling `LambdaApplication.CreateBuilder()` assembles a standard .NET host with Most applications can rely entirely on `CreateBuilder()` + `builder.Build()`β€”just add services, middleware, handlers, and call `await lambda.RunAsync();`. ```csharp title="Program.cs" linenums="1" -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; var builder = LambdaApplication.CreateBuilder(); diff --git a/docs/guides/index.md b/docs/guides/index.md index b0899c23..63475fea 100644 --- a/docs/guides/index.md +++ b/docs/guides/index.md @@ -1,6 +1,6 @@ # Guides -Comprehensive guides for building production Lambda functions with `AwsLambda.Host`. Each guide provides in-depth coverage of a specific framework feature with complete examples, best practices, and troubleshooting. +Comprehensive guides for building production Lambda functions with `MinimalLambda`. Each guide provides in-depth coverage of a specific framework feature with complete examples, best practices, and troubleshooting. ## Core Framework Guides @@ -104,7 +104,7 @@ Write comprehensive tests for your Lambda functions using xUnit, NSubstitute, an ## Learning Path -### New to `AwsLambda.Host`? +### New to `MinimalLambda`? Start with [Getting Started](../getting-started/index.md) to build your first Lambda function, then return here for deeper coverage of specific features. diff --git a/docs/guides/lifecycle-management.md b/docs/guides/lifecycle-management.md index 88946cd8..f8bdaefe 100644 --- a/docs/guides/lifecycle-management.md +++ b/docs/guides/lifecycle-management.md @@ -1,6 +1,6 @@ # Lifecycle Management -`AwsLambda.Host` exposes the entire Lambda container lifecycle so you can prepare resources during cold start, react to each invocation, and cleanly shut down when AWS reclaims the execution environment. +`MinimalLambda` exposes the entire Lambda container lifecycle so you can prepare resources during cold start, react to each invocation, and cleanly shut down when AWS reclaims the execution environment. ## Execution Flow at a Glance @@ -12,12 +12,12 @@ Cold Start β†’ OnInit β†’ Invocation 1..N β†’ OnShutdown β†’ Termination - **Invocation** – Runs for every event in the normal middleware/handler pipeline. Cancellation tokens respect `InvocationCancellationBuffer`. - **OnShutdown** – Runs once when the runtime receives SIGTERM or when the host stops. Used to flush telemetry or close connections. -Both OnInit and OnShutdown execute outside the invocation pipeline, but `AwsLambda.Host` creates a brand-new `IServiceScope` for every handler so you can resolve scoped services safely. +Both OnInit and OnShutdown execute outside the invocation pipeline, but `MinimalLambda` creates a brand-new `IServiceScope` for every handler so you can resolve scoped services safely. ## OnInit: Cold Start Hooks ```csharp title="Program.cs" -using AwsLambda.Host; +using MinimalLambda; using Microsoft.Extensions.DependencyInjection; var builder = LambdaApplication.CreateBuilder(); @@ -46,8 +46,8 @@ await lambda.RunAsync(); - Runs once per execution environment and shares time with your first invocation. - Each handler receives a linked `CancellationToken` that cancels when `InitTimeout` elapses or the host stops (default 5 seconds). -- You may register multiple handlers; `AwsLambda.Host` runs them **concurrently** via `Task.WhenAll`. -- Returning a `bool`/`Task` is optional. If you return a value it controls whether the cold start continues (`true`) or aborts (`false`); if you return `void`/`Task`, `AwsLambda.Host` assumes success. +- You may register multiple handlers; `MinimalLambda` runs them **concurrently** via `Task.WhenAll`. +- Returning a `bool`/`Task` is optional. If you return a value it controls whether the cold start continues (`true`) or aborts (`false`); if you return `void`/`Task`, `MinimalLambda` assumes success. - Exceptions are aggregated. If any handler throws, the framework logs all failures and aborts initialization. ### Handling Failure and Timeouts @@ -133,7 +133,7 @@ Both handlers are awaited simultaneously. Keep shutdown work smallβ€”only the re OnInit and OnShutdown handlers support the same source-generated dependency injection experience as middleware and handlers: - Request only what you need. The generated delegate resolves typed parameters (services, keyed services, `ILambdaHostContext`, `CancellationToken`, etc.). -- `AwsLambda.Host` creates a new `IServiceScope` for every handler invocation, ensuring scoped services (database units of work, caches) are isolated even though you are outside the invocation pipeline. +- `MinimalLambda` creates a new `IServiceScope` for every handler invocation, ensuring scoped services (database units of work, caches) are isolated even though you are outside the invocation pipeline. - The `IServiceProvider` parameter gives you direct access to the scope for manual resolution when needed. ```csharp title="Program.cs" diff --git a/docs/guides/middleware.md b/docs/guides/middleware.md index 6e1a6eb3..59ae9ac4 100644 --- a/docs/guides/middleware.md +++ b/docs/guides/middleware.md @@ -91,7 +91,7 @@ collection lazily creates features by asking every registered `IFeatureProvider` first requested. ```csharp title="Program.cs" -using AwsLambda.Host.Abstractions.Features; +using MinimalLambda.Abstractions.Features; lambda.UseMiddleware(async (context, next) => { @@ -169,14 +169,14 @@ These methods are equivalent to calling `context.Features.Get>( ### Feature Providers in Practice -When `context.Features.Get()` runs, `AwsLambda.Host` walks through every registered `IFeatureProvider` +When `context.Features.Get()` runs, `MinimalLambda` walks through every registered `IFeatureProvider` until one returns the requested feature. Built-in providers handle common cases such as response serialization. Use the same pattern for your features. ```csharp title="DefaultResponseFeatureProvider.cs" linenums="1" using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides a default implementation of for Lambda response diff --git a/docs/index.md b/docs/index.md index 965af824..c0db5250 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,7 +9,7 @@ title: "" [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=j-d-ha_aws-lambda-host&metric=alert_status&token=9fb519975d91379dcfbc6c13a4bd4207131af6e3)](https://sonarcloud.io/summary/new_code?id=j-d-ha_aws-lambda-host) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/j-d-ha/aws-lambda-host/blob/main/LICENSE) -AwsLambda.Host is a lightweight hosting framework for .NET developers who want the comfort of ASP.NET +MinimalLambda is a lightweight hosting framework for .NET developers who want the comfort of ASP.NET Core’s middleware, dependency injection, and lifecycle hooks inside AWS Lambda. Instead of wiring up scopes, serializers, and cancellation tokens by hand, you map strongly typed handlers and let the source-generated pipeline handle the plumbing. The result: less boilerplate, better testability, and @@ -21,7 +21,7 @@ handlers that feel like the rest of your .NET codebase. --- -## Why AwsLambda.Host? +## Why MinimalLambda? Stop wiring up DI scopes, serializers, and cancellation tokens by hand. Ship features with patterns you already know, while still embracing Lambda’s execution model. @@ -74,7 +74,7 @@ already know, while still embracing Lambda’s execution model. ``` -=== "`AwsLambda.Host`" +=== "`MinimalLambda`" ```csharp // βœ… Familiar .NET Core builder pattern @@ -164,13 +164,13 @@ Small abstraction surface area keeps CPU and memory usage predictable inside Lam Install the NuGet package: ```bash -dotnet add package AwsLambda.Host +dotnet add package MinimalLambda ``` Create your first Lambda handler: ```csharp -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); var lambda = builder.Build(); @@ -195,9 +195,9 @@ for building AWS Lambda functions. | Package | Description | NuGet | Downloads | |------------------------------------------------------------------|-----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/AwsLambda.Host) | Core hosting framework with middleware and DI | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/AwsLambda.Host.Abstractions) | Core interfaces and contracts | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](features/open_telemetry.md) | Distributed tracing and observability | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | +| [**MinimalLambda**](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/MinimalLambda) | Core hosting framework with middleware and DI | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/MinimalLambda.Abstractions) | Core interfaces and contracts | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](features/open_telemetry.md) | Distributed tracing and observability | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | ### Envelope Packages @@ -213,14 +213,14 @@ deserialization. | Package | Description | NuGet | Downloads | |----------------------------------------------------------------------------------------|-------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **AwsLambda.Host.Envelopes.Sqs** | Simple Queue Service events with typed message bodies | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| **AwsLambda.Host.Envelopes.Sns** | Simple Notification Service messages | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| **AwsLambda.Host.Envelopes.ApiGateway** | REST, HTTP, and WebSocket APIs | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| **AwsLambda.Host.Envelopes.Kinesis** | Data Streams with typed records | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| **AwsLambda.Host.Envelopes.KinesisFirehose** | Data transformation | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| **AwsLambda.Host.Envelopes.Kafka** | MSK and self-managed Kafka | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| **AwsLambda.Host.Envelopes.CloudWatchLogs** | Log subscriptions | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| **AwsLambda.Host.Envelopes.Alb** | Application Load Balancer requests | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| **MinimalLambda.Envelopes.Sqs** | Simple Queue Service events with typed message bodies | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| **MinimalLambda.Envelopes.Sns** | Simple Notification Service messages | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| **MinimalLambda.Envelopes.ApiGateway** | REST, HTTP, and WebSocket APIs | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| **MinimalLambda.Envelopes.Kinesis** | Data Streams with typed records | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| **MinimalLambda.Envelopes.KinesisFirehose** | Data transformation | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| **MinimalLambda.Envelopes.Kafka** | MSK and self-managed Kafka | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| **MinimalLambda.Envelopes.CloudWatchLogs** | Log subscriptions | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| **MinimalLambda.Envelopes.Alb** | Application Load Balancer requests | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | [Browse all envelope packages](features/envelopes.md){ .md-button } diff --git a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj index 61ac08cf..2b631bb8 100644 --- a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj +++ b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj @@ -11,7 +11,7 @@ true true - $(InterceptorsNamespaces);AwsLambda.Host + $(InterceptorsNamespaces);MinimalLambda Lambda.Host.Example.Events false false diff --git a/examples/MinimalLambda.Example.Events/Program.cs b/examples/MinimalLambda.Example.Events/Program.cs index e71aa952..d9ce96a5 100644 --- a/examples/MinimalLambda.Example.Events/Program.cs +++ b/examples/MinimalLambda.Example.Events/Program.cs @@ -5,6 +5,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; +using MinimalLambda.Envelopes.ApiGateway; using MinimalLambda.Host.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj index 315a1c6a..b2dca3fc 100644 --- a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj +++ b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj @@ -11,7 +11,7 @@ true true - $(InterceptorsNamespaces);AwsLambda.Host + $(InterceptorsNamespaces);MinimalLambda Lambda.Host.Example.HelloWorld false diff --git a/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj index 20e14cab..275b0c56 100644 --- a/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj +++ b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj @@ -19,7 +19,7 @@ full bootstrap true - $(InterceptorsNamespaces);AwsLambda.Host + $(InterceptorsNamespaces);MinimalLambda Lambda.Host.Example.HelloWorldAot false diff --git a/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj index 2f719cca..15a155b8 100644 --- a/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj +++ b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj @@ -11,7 +11,7 @@ true true - $(InterceptorsNamespaces);AwsLambda.Host + $(InterceptorsNamespaces);MinimalLambda false diff --git a/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj index 8873dfe3..764bccf1 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj +++ b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj @@ -11,8 +11,8 @@ true true - - $(InterceptorsNamespaces);AwsLambda.Host + + $(InterceptorsNamespaces);MinimalLambda false diff --git a/examples/MinimalLambda.Example.OpenTelemetry/README.md b/examples/MinimalLambda.Example.OpenTelemetry/README.md index 4f4fd119..c765fdc7 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/README.md +++ b/examples/MinimalLambda.Example.OpenTelemetry/README.md @@ -1,4 +1,4 @@ -# AwsLambda.Host.Example.OpenTelemetry +# MinimalLambda.Example.OpenTelemetry > πŸ“š **[View Full Documentation](https://j-d-ha.github.io/aws-lambda-host/)** @@ -7,7 +7,7 @@ You may need to CD into this directory before running the following commands. ```bash -cd ./examples/AwsLambda.Host.Example.OpenTelemetry +cd ./examples/MinimalLambda.Example.OpenTelemetry ``` ### Dependencies diff --git a/mkdocs.yml b/mkdocs.yml index d8d76c79..b260da07 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,7 +2,7 @@ # https://github.com/mkdocs/catalog -site_name: AwsLambda.Host +site_name: MinimalLambda site_description: A modern .NET framework for building AWS Lambda functions using familiar .NET patterns. site_url: https://j-d-ha.github.io/aws-lambda-host/ site_author: Jonas Ha diff --git a/scripts/validate-version.sh b/scripts/validate-version.sh index 69779066..33cf0463 100644 --- a/scripts/validate-version.sh +++ b/scripts/validate-version.sh @@ -2,8 +2,8 @@ # Script to validate that a package version doesn't already exist on NuGet -# Get the directory from the first argument, default to src/AwsLambda.Host -DIR="${1:-src/AwsLambda.Host}" +# Get the directory from the first argument, default to src/MinimalLambda +DIR="${1:-src/MinimalLambda}" # Change to the project directory cd "$DIR" || exit 1 diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelope.cs index dc07fcf2..d6cfecac 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Alb; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelopeBase.cs index fc6a020e..7f19c476 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbRequestEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.ApplicationLoadBalancerEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Alb; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelope.cs index 41f1718b..cd8c1951 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Alb; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelopeBase.cs index 5beaac6d..8d427723 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/AlbResponseEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.ApplicationLoadBalancerEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Alb; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md b/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md index 4f8bcc36..08135240 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.Alb +# MinimalLambda.Envelopes.Alb -Strongly-typed Application Load Balancer event handling for the AwsLambda.Host framework. +Strongly-typed Application Load Balancer event handling for the MinimalLambda framework. ## Overview @@ -28,8 +28,8 @@ Define your request and response types, then create a handler: ```csharp using System; using System.Collections.Generic; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.Alb; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.Alb; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -131,17 +131,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs index b876bb4d..8b14f676 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelope.cs @@ -1,6 +1,5 @@ ο»Ώusing System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs index db133fd8..1a57f2d5 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayRequestEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs index bbc1ee91..c580251d 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs index 31954eb9..03b9d24e 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayResponseEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs index 2897faae..195a0ad3 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelope.cs @@ -1,6 +1,5 @@ ο»Ώusing System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs index c2659cb4..337cb313 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2RequestEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs index 91a5b5c4..e239514e 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs index e80259c8..45e4d2b1 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/ApiGatewayV2ResponseEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.APIGatewayEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.ApiGateway; diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md index 7d5c30f4..17493a13 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.ApiGateway +# MinimalLambda.Envelopes.ApiGateway -Strongly-typed API Gateway event handling for the AwsLambda.Host framework. +Strongly-typed API Gateway event handling for the MinimalLambda framework. ## Overview @@ -29,8 +29,8 @@ Define your request and response types, then create a handler: ```csharp using System; using System.Collections.Generic; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.ApiGateway; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.ApiGateway; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -135,17 +135,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs index 4bb6c37a..623243e0 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelope.cs @@ -1,4 +1,4 @@ -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.CloudWatchLogs; diff --git a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs index d604c578..9b425d69 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeBase.cs @@ -1,8 +1,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Amazon.Lambda.CloudWatchLogsEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.CloudWatchLogs; diff --git a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs index cb1ab2a5..511ea957 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/CloudWatchLogsEnvelopeT.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.CloudWatchLogs; diff --git a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md index 58d703a6..b253d5a2 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.CloudWatchLogs +# MinimalLambda.Envelopes.CloudWatchLogs -Strongly-typed CloudWatch Logs event handling for the AwsLambda.Host framework. +Strongly-typed CloudWatch Logs event handling for the MinimalLambda framework. ## Overview @@ -21,8 +21,8 @@ Define your log data type and handler: ```csharp using System.Text.Json; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.CloudWatchLogs; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.CloudWatchLogs; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -124,17 +124,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelope.cs index cba7aee2..f6df08b0 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelope.cs @@ -1,8 +1,8 @@ using System.Text; using System.Text.Json; -using AwsLambda.Host.Options; +using MinimalLambda.Options; -namespace AwsLambda.Host.Envelopes.Kafka; +namespace MinimalLambda.Envelopes.Kafka; /// /// diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelopeBase.cs index f5621eb6..96c7e22c 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/KafkaEnvelopeBase.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; using Amazon.Lambda.KafkaEvents; -using AwsLambda.Host.Options; +using MinimalLambda.Options; -namespace AwsLambda.Host.Envelopes.Kafka; +namespace MinimalLambda.Envelopes.Kafka; /// /// diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj index 02f70dbd..990fc000 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj @@ -11,7 +11,7 @@ MinimalLambda.Envelopes.Kafka Strongly-typed Kafka Models AWS Lambda README.md - AwsLambda.Host.Envelopes.Kafka + MinimalLambda.Envelopes.Kafka diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md b/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md index 13e7b1c4..31a275cc 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.Kafka +# MinimalLambda.Envelopes.Kafka -Strongly-typed Kafka event handling for the AwsLambda.Host framework. +Strongly-typed Kafka event handling for the MinimalLambda framework. ## Overview @@ -21,8 +21,8 @@ Define your message type and handler: ```csharp using Amazon.Lambda.KafkaEvents; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.Kafka; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.Kafka; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -128,17 +128,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelope.cs index 829f0670..6e1ede6b 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelope.cs @@ -1,7 +1,6 @@ using System.Text; using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Kinesis; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelopeBase.cs index 9a433aff..7abb816c 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/KinesisEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.KinesisEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Kinesis; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md index 301942fd..b7e76037 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.Kinesis +# MinimalLambda.Envelopes.Kinesis -Strongly-typed Kinesis event handling for the AwsLambda.Host framework. +Strongly-typed Kinesis event handling for the MinimalLambda framework. ## Overview @@ -20,8 +20,8 @@ Define your record type and handler: ```csharp using Amazon.Lambda.KinesisEvents; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.Kinesis; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.Kinesis; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -119,17 +119,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs index cf29c45d..ed2eaba4 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.KinesisFirehose; diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs index db2b6750..ab11f563 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseEventEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.KinesisFirehoseEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.KinesisFirehose; diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs index af4fd8da..ce105648 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.KinesisFirehose; diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs index 9a947933..09261419 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/KinesisFirehoseResponseEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.KinesisFirehoseEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.KinesisFirehose; diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md index afc7e180..c73eb997 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.KinesisFirehose +# MinimalLambda.Envelopes.KinesisFirehose -Strongly-typed Kinesis Firehose event handling for the AwsLambda.Host framework. +Strongly-typed Kinesis Firehose event handling for the MinimalLambda framework. ## Overview @@ -27,8 +27,8 @@ Define your data types, then create a transformation handler: ```csharp using System; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.KinesisFirehose; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.KinesisFirehose; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -154,17 +154,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md b/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md index a76400f7..0129ab94 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.Sns +# MinimalLambda.Envelopes.Sns -Strongly-typed SNS event handling for the AwsLambda.Host framework. +Strongly-typed SNS event handling for the MinimalLambda framework. ## Overview @@ -20,8 +20,8 @@ Define your message type and handler: ```csharp using Amazon.Lambda.SNSEvents; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.Sns; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.Sns; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -106,17 +106,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelope.cs index 8e4e5e2e..560ea277 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Sns; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelopeBase.cs index 87d1d6d2..d0b3b7c5 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/SnsEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.SNSEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Sns; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md b/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md index 9cce6ef0..a4fc6d2d 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md @@ -1,6 +1,6 @@ -# AwsLambda.Host.Envelopes.Sqs +# MinimalLambda.Envelopes.Sqs -Strongly-typed SQS event handling for the AwsLambda.Host framework. +Strongly-typed SQS event handling for the MinimalLambda framework. ## Overview @@ -23,8 +23,8 @@ Define your message type and handler: ```csharp using Amazon.Lambda.SQSEvents; -using AwsLambda.Host.Builder; -using AwsLambda.Host.Envelopes.Sqs; +using MinimalLambda.Builder; +using MinimalLambda.Envelopes.Sqs; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -150,17 +150,17 @@ source handling. | Package | NuGet | Downloads | |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelope.cs index 263bae2c..d4087a7d 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelope.cs @@ -1,6 +1,5 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Sqs; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelopeBase.cs b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelopeBase.cs index ef942d4f..ec665e11 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelopeBase.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsEnvelopeBase.cs @@ -1,7 +1,6 @@ using System.Text.Json.Serialization; using Amazon.Lambda.SQSEvents; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Sqs; diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsSnsEnvelope.cs b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsSnsEnvelope.cs index ad52d875..95e6bcd3 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsSnsEnvelope.cs +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/SqsSnsEnvelope.cs @@ -1,7 +1,6 @@ using System.Text.Json; -using AwsLambda.Host.Envelopes; -using AwsLambda.Host.Options; using MinimalLambda.Envelopes.Sns; +using MinimalLambda.Options; namespace MinimalLambda.Envelopes.Sqs; diff --git a/src/Envelopes/README.md b/src/Envelopes/README.md index 046c5be0..501d94a9 100644 --- a/src/Envelopes/README.md +++ b/src/Envelopes/README.md @@ -24,14 +24,14 @@ IDE support and compile-time type checking. | Lambda Event Type | Package | NuGet | Downloads | |--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| SQS | [**AwsLambda.Host.Envelopes.Sqs**](./AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| SQS (SNS-to-SQS Subscription) | [**AwsLambda.Host.Envelopes.Sqs**](./AwsLambda.Host.Envelopes.Sqs/README.md#sqssnsenvelope---sns-to-sqs-subscription-pattern) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| API Gateway (REST/HTTP/WebSocket) | [**AwsLambda.Host.Envelopes.ApiGateway**](./AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| SNS | [**AwsLambda.Host.Envelopes.Sns**](./AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| Kinesis Data Streams | [**AwsLambda.Host.Envelopes.Kinesis**](./AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| Kinesis Data Firehose Transformation | [**AwsLambda.Host.Envelopes.KinesisFirehose**](./AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| Kafka (MSK or self-managed) | [**AwsLambda.Host.Envelopes.Kafka**](./AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| CloudWatch Logs | [**AwsLambda.Host.Envelopes.CloudWatchLogs**](./AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| Application Load Balancer | [**AwsLambda.Host.Envelopes.Alb**](./AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| SQS | [**MinimalLambda.Envelopes.Sqs**](./MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| SQS (SNS-to-SQS Subscription) | [**MinimalLambda.Envelopes.Sqs**](./MinimalLambda.Envelopes.Sqs/README.md#sqssnsenvelope---sns-to-sqs-subscription-pattern) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| API Gateway (REST/HTTP/WebSocket) | [**MinimalLambda.Envelopes.ApiGateway**](./MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| SNS | [**MinimalLambda.Envelopes.Sns**](./MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| Kinesis Data Streams | [**MinimalLambda.Envelopes.Kinesis**](./MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| Kinesis Data Firehose Transformation | [**MinimalLambda.Envelopes.KinesisFirehose**](./MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| Kafka (MSK or self-managed) | [**MinimalLambda.Envelopes.Kafka**](./MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| CloudWatch Logs | [**MinimalLambda.Envelopes.CloudWatchLogs**](./MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| Application Load Balancer | [**MinimalLambda.Envelopes.Alb**](./MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | Each package has detailed documentation in its own README file. diff --git a/src/MinimalLambda.Abstractions/Builders/ILambdaInvocationBuilder.cs b/src/MinimalLambda.Abstractions/Builders/ILambdaInvocationBuilder.cs index 3ce5b616..085b7935 100644 --- a/src/MinimalLambda.Abstractions/Builders/ILambdaInvocationBuilder.cs +++ b/src/MinimalLambda.Abstractions/Builders/ILambdaInvocationBuilder.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Builder for composing Lambda invocation handlers with middleware. /// diff --git a/src/MinimalLambda.Abstractions/Builders/ILambdaOnInitBuilder.cs b/src/MinimalLambda.Abstractions/Builders/ILambdaOnInitBuilder.cs index aa68f7b9..f86f1e70 100644 --- a/src/MinimalLambda.Abstractions/Builders/ILambdaOnInitBuilder.cs +++ b/src/MinimalLambda.Abstractions/Builders/ILambdaOnInitBuilder.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Builder for composing Lambda init handlers that execute during the Init phase. /// diff --git a/src/MinimalLambda.Abstractions/Builders/ILambdaOnShutdownBuilder.cs b/src/MinimalLambda.Abstractions/Builders/ILambdaOnShutdownBuilder.cs index ea264dc9..736c6b53 100644 --- a/src/MinimalLambda.Abstractions/Builders/ILambdaOnShutdownBuilder.cs +++ b/src/MinimalLambda.Abstractions/Builders/ILambdaOnShutdownBuilder.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Builder for composing Lambda shutdown handlers that execute during the Shutdown phase. /// diff --git a/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs b/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs index f1bf7ab1..21b7a3bf 100644 --- a/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs +++ b/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides a factory for creating cancellation token sources configured for AWS Lambda diff --git a/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs b/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs index 544c42e7..71d7d00b 100644 --- a/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs +++ b/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Encapsulates the information about a Lambda invocation. It extends diff --git a/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs b/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs index fb88b40e..eac0eb94 100644 --- a/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs +++ b/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides access to the for the current Lambda diff --git a/src/MinimalLambda.Abstractions/Delegates/LambdaInitDelegate.cs b/src/MinimalLambda.Abstractions/Delegates/LambdaInitDelegate.cs index f51633fe..8f55cd8a 100644 --- a/src/MinimalLambda.Abstractions/Delegates/LambdaInitDelegate.cs +++ b/src/MinimalLambda.Abstractions/Delegates/LambdaInitDelegate.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host; +namespace MinimalLambda; /// /// A callback delegate invoked during the AWS Lambda Function Init phase, before any handler diff --git a/src/MinimalLambda.Abstractions/Delegates/LambdaInvocationDelegate.cs b/src/MinimalLambda.Abstractions/Delegates/LambdaInvocationDelegate.cs index 604d1638..95baad43 100644 --- a/src/MinimalLambda.Abstractions/Delegates/LambdaInvocationDelegate.cs +++ b/src/MinimalLambda.Abstractions/Delegates/LambdaInvocationDelegate.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host; +namespace MinimalLambda; /// A delegate that represents an asynchronous handler for AWS Lambda invocations. /// diff --git a/src/MinimalLambda.Abstractions/Delegates/LambdaShutdownDelegate.cs b/src/MinimalLambda.Abstractions/Delegates/LambdaShutdownDelegate.cs index 214714fc..881215aa 100644 --- a/src/MinimalLambda.Abstractions/Delegates/LambdaShutdownDelegate.cs +++ b/src/MinimalLambda.Abstractions/Delegates/LambdaShutdownDelegate.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host; +namespace MinimalLambda; /// A callback delegate invoked during the AWS Lambda Function Shutdown phase. /// A scoped for resolving dependencies. diff --git a/src/MinimalLambda.Abstractions/Envelopes/IRequestEnvelope.cs b/src/MinimalLambda.Abstractions/Envelopes/IRequestEnvelope.cs index b442f2c2..1fed632f 100644 --- a/src/MinimalLambda.Abstractions/Envelopes/IRequestEnvelope.cs +++ b/src/MinimalLambda.Abstractions/Envelopes/IRequestEnvelope.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Envelopes; +namespace MinimalLambda.Envelopes; /// Defines a contract for extracting and deserializing incoming Lambda event payloads. /// diff --git a/src/MinimalLambda.Abstractions/Envelopes/IResponseEnvelope.cs b/src/MinimalLambda.Abstractions/Envelopes/IResponseEnvelope.cs index 72fcd889..fa7654c3 100644 --- a/src/MinimalLambda.Abstractions/Envelopes/IResponseEnvelope.cs +++ b/src/MinimalLambda.Abstractions/Envelopes/IResponseEnvelope.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Envelopes; +namespace MinimalLambda.Envelopes; /// /// Defines a contract for serializing and packing handler results into Lambda response diff --git a/src/MinimalLambda.Abstractions/Features/IEventFeature.cs b/src/MinimalLambda.Abstractions/Features/IEventFeature.cs index 4d6f9804..696717a3 100644 --- a/src/MinimalLambda.Abstractions/Features/IEventFeature.cs +++ b/src/MinimalLambda.Abstractions/Features/IEventFeature.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// Provides access to the deserialized Lambda invocation event. /// diff --git a/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs b/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs index 5d56b2fc..9429ff04 100644 --- a/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs +++ b/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// Creates feature providers for Lambda event deserialization. /// diff --git a/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs b/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs index ea94e733..25c5aea1 100644 --- a/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs +++ b/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// Provides access to the deserialized Lambda invocation event of a specific type. /// The type of the event object. diff --git a/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs b/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs index b48a7e81..860c3a3d 100644 --- a/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs +++ b/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs @@ -6,7 +6,7 @@ // See THIRD-PARTY-LICENSES.txt file in the project root or visit // https://github.com/Azure/azure-functions-dotnet-worker/blob/2.51.0/LICENSE -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// A type-keyed collection of features available during a Lambda invocation. /// diff --git a/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs b/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs index 940de008..740e07c8 100644 --- a/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs +++ b/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs @@ -6,7 +6,7 @@ // See THIRD-PARTY-LICENSES.txt file in the project root or visit // https://github.com/Azure/azure-functions-dotnet-worker/blob/2.51.0/LICENSE -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// Provides a mechanism to create feature instances on demand. /// diff --git a/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs b/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs index 4bf00b5e..59e0ed10 100644 --- a/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs +++ b/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides access to the invocation event and response data for a Lambda function diff --git a/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs index e9b85a58..4880766c 100644 --- a/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs +++ b/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// Provides access to the Lambda invocation response. /// diff --git a/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs index d742f0bd..255328b5 100644 --- a/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs +++ b/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// Creates feature providers for Lambda response serialization. /// diff --git a/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs index f417a3c0..3e468364 100644 --- a/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs +++ b/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs @@ -1,4 +1,4 @@ -namespace AwsLambda.Host.Core; +namespace MinimalLambda.Core; /// Provides type-safe access to the Lambda invocation response of a specific type. /// The type of the response object. diff --git a/src/MinimalLambda.Abstractions/GlobalUsings.cs b/src/MinimalLambda.Abstractions/GlobalUsings.cs index 5aaa0584..24423046 100644 --- a/src/MinimalLambda.Abstractions/GlobalUsings.cs +++ b/src/MinimalLambda.Abstractions/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using AwsLambda.Host; -global using AwsLambda.Host.Builder; -global using AwsLambda.Host.Core; -global using AwsLambda.Host.Options; +global using MinimalLambda; +global using MinimalLambda.Builder; +global using MinimalLambda.Core; +global using MinimalLambda.Options; diff --git a/src/MinimalLambda.Abstractions/Options/EnvelopeOptions.cs b/src/MinimalLambda.Abstractions/Options/EnvelopeOptions.cs index 8dc0cc2e..c25fba1a 100644 --- a/src/MinimalLambda.Abstractions/Options/EnvelopeOptions.cs +++ b/src/MinimalLambda.Abstractions/Options/EnvelopeOptions.cs @@ -3,9 +3,9 @@ using System.Xml; using Amazon.Lambda.Serialization.SystemTextJson; using Amazon.Lambda.Serialization.SystemTextJson.Converters; -using AwsLambda.Host.Envelopes; +using MinimalLambda.Envelopes; -namespace AwsLambda.Host.Options; +namespace MinimalLambda.Options; /// Options for configuring envelope payload serialization and deserialization. /// diff --git a/src/MinimalLambda.Abstractions/README.md b/src/MinimalLambda.Abstractions/README.md index 34b5b227..f38631dc 100644 --- a/src/MinimalLambda.Abstractions/README.md +++ b/src/MinimalLambda.Abstractions/README.md @@ -1,4 +1,4 @@ -# AwsLambda.Host.Abstractions +# MinimalLambda.Abstractions Core interfaces and abstractions for the aws-lambda-host framework. @@ -6,7 +6,7 @@ Core interfaces and abstractions for the aws-lambda-host framework. ## Overview -Core interfaces and delegates that define the AwsLambda.Host framework contract. This package +Core interfaces and delegates that define the MinimalLambda framework contract. This package provides: - **Handler Abstractions**: Interfaces for Lambda request and response handling across different @@ -16,7 +16,7 @@ provides: - **Dependency Injection**: Service container and lifetime management interfaces - **Extension Points**: Contracts for custom integrations and framework extensions -This package is typically used implicitly by [AwsLambda.Host](../AwsLambda.Host/README.md), but is +This package is typically used implicitly by [MinimalLambda](../MinimalLambda/README.md), but is essential if you're building custom integrations, middleware components, or extensions to the framework. @@ -25,13 +25,13 @@ framework. Install via NuGet: ```bash -dotnet add package AwsLambda.Host.Abstractions +dotnet add package MinimalLambda.Abstractions ``` Or specify a version: ```bash -dotnet add package AwsLambda.Host.Abstractions --version +dotnet add package MinimalLambda.Abstractions --version ``` Ensure your project uses C# 11 or later: @@ -46,7 +46,7 @@ Ensure your project uses C# 11 or later: > [!NOTE] > This package is typically included automatically when you use -> [AwsLambda.Host](../AwsLambda.Host/README.md). Direct installation is only necessary when +> [MinimalLambda](../MinimalLambda/README.md). Direct installation is only necessary when > building custom integrations or extensions. ## Core Abstractions @@ -109,7 +109,7 @@ LambdaApplication.CreateBuilder() ``` This design separates concerns between request/response handling, initialization, and lifecycle -cleanup. See [AwsLambda.Host](../AwsLambda.Host/README.md) for detailed usage examples and the +cleanup. See [MinimalLambda](../MinimalLambda/README.md) for detailed usage examples and the complete builder API. ### ILambdaHostContext @@ -201,7 +201,7 @@ The abstractions represent three Lambda execution phases: - **Invocation** – `LambdaInvocationDelegate` runs for each event - **Shutdown** – `LambdaShutdownDelegate` runs once before termination -For implementation details and examples, see [AwsLambda.Host](../AwsLambda.Host/README.md). +For implementation details and examples, see [MinimalLambda](../MinimalLambda/README.md). ## Other Packages @@ -210,17 +210,17 @@ source handling. | Package | NuGet | Downloads | |-----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../Envelopes/AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../Envelopes/AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../Envelopes/AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../Envelopes/AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../Envelopes/AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../Envelopes/AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../Envelopes/MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../Envelopes/MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../Envelopes/MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../Envelopes/MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../Envelopes/MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/MinimalLambda.Core/MinimalLambda.Core.csproj b/src/MinimalLambda.Core/MinimalLambda.Core.csproj index 5abf60b3..4cece1e6 100644 --- a/src/MinimalLambda.Core/MinimalLambda.Core.csproj +++ b/src/MinimalLambda.Core/MinimalLambda.Core.csproj @@ -22,9 +22,9 @@ - + - $(InterceptorsPreviewNamespaces);AwsLambda.Host.Core.Generated + $(InterceptorsPreviewNamespaces);MinimalLambda.Core.Generated diff --git a/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs b/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs index 3a900d83..f9a034b7 100644 --- a/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs +++ b/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -using AwsLambda.Host; -using AwsLambda.Host.Core; +using MinimalLambda; +using MinimalLambda.Core; using OpenTelemetry.Instrumentation.AWSLambda; using OpenTelemetry.Trace; diff --git a/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs b/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs index 995dd42c..e51b2840 100644 --- a/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs +++ b/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs @@ -1,9 +1,9 @@ -using AwsLambda.Host.Core; using Microsoft.Extensions.DependencyInjection; +using MinimalLambda.Core; using OpenTelemetry.Instrumentation.AWSLambda; using OpenTelemetry.Trace; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Builder; /// /// Provides extension methods for enabling OpenTelemetry tracing in the Lambda invocation diff --git a/src/MinimalLambda.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs b/src/MinimalLambda.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs index 16b02a71..3ce38533 100644 --- a/src/MinimalLambda.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs +++ b/src/MinimalLambda.OpenTelemetry/OnShutdownOpenTelemetryExtensions.cs @@ -4,7 +4,7 @@ using OpenTelemetry.Metrics; using OpenTelemetry.Trace; -namespace AwsLambda.Host.Builder; +namespace MinimalLambda.Builder; /// /// Extension methods for configuring OpenTelemetry force flush behavior during Lambda diff --git a/src/MinimalLambda.OpenTelemetry/README.md b/src/MinimalLambda.OpenTelemetry/README.md index 6fad3b23..693d84af 100644 --- a/src/MinimalLambda.OpenTelemetry/README.md +++ b/src/MinimalLambda.OpenTelemetry/README.md @@ -1,4 +1,4 @@ -# AwsLambda.Host.OpenTelemetry +# MinimalLambda.OpenTelemetry OpenTelemetry integration for distributed tracing and observability in AWS Lambda functions. @@ -6,7 +6,7 @@ OpenTelemetry integration for distributed tracing and observability in AWS Lambd ## Overview -An extension package for the [AwsLambda.Host](../AwsLambda.Host/README.md) framework that provides +An extension package for the [MinimalLambda](../MinimalLambda/README.md) framework that provides comprehensive observability integration. This package enables: - **Distributed Tracing**: Automatic span creation and context propagation for Lambda invocations @@ -20,25 +20,25 @@ comprehensive observability integration. This package enables: error tracking > [!NOTE] -> Requires AwsLambda.Host – this package extends that framework and cannot be used +> Requires MinimalLambda – this package extends that framework and cannot be used > standalone. Configure exporters to send traces and metrics to your observability backend (e.g., > Datadog, New Relic, Jaeger, CloudWatch). ## Installation -**This package requires [AwsLambda.Host](../AwsLambda.Host/README.md) to be installed and working +**This package requires [MinimalLambda](../MinimalLambda/README.md) to be installed and working in your project.** It is an extension package and cannot function standalone. First, install the core framework: ```bash -dotnet add package AwsLambda.Host +dotnet add package MinimalLambda ``` Then install this OpenTelemetry extension: ```bash -dotnet add package AwsLambda.Host.OpenTelemetry +dotnet add package MinimalLambda.OpenTelemetry ``` Ensure your project uses C# 11 or later: @@ -69,7 +69,7 @@ for your specific observability backend and instrumentation needs. Set up OpenTelemetry with the AWS Lambda instrumentation: ```csharp -using AwsLambda.Host.Builder; +using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using OpenTelemetry.Instrumentation.AWSLambda; @@ -217,7 +217,7 @@ lambda.OnShutdownFlushMeter(); ## Example Project A complete, runnable example with Docker Compose setup is available in -[examples/AwsLambda.Host.Example.OpenTelemetry](../../examples/AwsLambda.Host.Example.OpenTelemetry/). +[examples/MinimalLambda.Example.OpenTelemetry](../../examples/MinimalLambda.Example.OpenTelemetry/). The example demonstrates: @@ -248,17 +248,17 @@ source handling. | Package | NuGet | Downloads | |-----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [**AwsLambda.Host**](../AwsLambda.Host/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.svg)](https://www.nuget.org/packages/AwsLambda.Host/) | -| [**AwsLambda.Host.Abstractions**](../AwsLambda.Host.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Abstractions.svg)](https://www.nuget.org/packages/AwsLambda.Host.Abstractions/) | -| [**AwsLambda.Host.OpenTelemetry**](../AwsLambda.Host.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.OpenTelemetry.svg)](https://www.nuget.org/packages/AwsLambda.Host.OpenTelemetry/) | -| [**AwsLambda.Host.Envelopes.Sqs**](../Envelopes/AwsLambda.Host.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sqs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sqs/) | -| [**AwsLambda.Host.Envelopes.ApiGateway**](../Envelopes/AwsLambda.Host.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.ApiGateway/) | -| [**AwsLambda.Host.Envelopes.Sns**](../Envelopes/AwsLambda.Host.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Sns.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Sns/) | -| [**AwsLambda.Host.Envelopes.Kinesis**](../Envelopes/AwsLambda.Host.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kinesis/) | -| [**AwsLambda.Host.Envelopes.KinesisFirehose**](../Envelopes/AwsLambda.Host.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.KinesisFirehose/) | -| [**AwsLambda.Host.Envelopes.Kafka**](../Envelopes/AwsLambda.Host.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Kafka.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Kafka/) | -| [**AwsLambda.Host.Envelopes.CloudWatchLogs**](../Envelopes/AwsLambda.Host.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.CloudWatchLogs/) | -| [**AwsLambda.Host.Envelopes.Alb**](../Envelopes/AwsLambda.Host.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/AwsLambda.Host.Envelopes.Alb.svg)](https://www.nuget.org/packages/AwsLambda.Host.Envelopes.Alb/) | +| [**MinimalLambda**](../MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](../MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda.OpenTelemetry**](../MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | +| [**MinimalLambda.Envelopes.Sqs**](../Envelopes/MinimalLambda.Envelopes.Sqs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs/) | +| [**MinimalLambda.Envelopes.ApiGateway**](../Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway/) | +| [**MinimalLambda.Envelopes.Sns**](../Envelopes/MinimalLambda.Envelopes.Sns/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns/) | +| [**MinimalLambda.Envelopes.Kinesis**](../Envelopes/MinimalLambda.Envelopes.Kinesis/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis/) | +| [**MinimalLambda.Envelopes.KinesisFirehose**](../Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose/) | +| [**MinimalLambda.Envelopes.Kafka**](../Envelopes/MinimalLambda.Envelopes.Kafka/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka/) | +| [**MinimalLambda.Envelopes.CloudWatchLogs**](../Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs/) | +| [**MinimalLambda.Envelopes.Alb**](../Envelopes/MinimalLambda.Envelopes.Alb/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb/) | ## License diff --git a/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Shipped.md b/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Shipped.md index 53047bfd..6c52df40 100644 --- a/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Shipped.md +++ b/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Shipped.md @@ -4,7 +4,7 @@ Rule ID | Category | Severity | Notes ---------|------------------------------|----------|----------------------------------- - LH0001 | AwsLambda.Host.Usage | Error | Multiple method calls detected - LH0002 | AwsLambda.Host.Usage | Error | Multiple parameters use attribute - LH0003 | AwsLambda.Host.Usage | Error | Invalid attribute argument - LH0004 | AwsLambda.Host.Configuration | Error | C# language version too low + LH0001 | MinimalLambda.Usage | Error | Multiple method calls detected + LH0002 | MinimalLambda.Usage | Error | Multiple parameters use attribute + LH0003 | MinimalLambda.Usage | Error | Invalid attribute argument + LH0004 | MinimalLambda.Configuration | Error | C# language version too low diff --git a/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Unshipped.md b/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Unshipped.md index a4c46e3b..805230ad 100644 --- a/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Unshipped.md +++ b/src/MinimalLambda.SourceGenerators/AnalyzerReleases.Unshipped.md @@ -2,4 +2,4 @@ Rule ID | Category | Severity | Notes ---------|------------------------------|----------|----------------------------------- - LH0001 | AwsLambda.Host.Usage | Error | Multiple method calls detected \ No newline at end of file + LH0001 | MinimalLambda.Usage | Error | Multiple method calls detected \ No newline at end of file diff --git a/src/MinimalLambda.SourceGenerators/Diagnostics/Diagnostics.cs b/src/MinimalLambda.SourceGenerators/Diagnostics/Diagnostics.cs index c8cea47b..31c9ac07 100644 --- a/src/MinimalLambda.SourceGenerators/Diagnostics/Diagnostics.cs +++ b/src/MinimalLambda.SourceGenerators/Diagnostics/Diagnostics.cs @@ -4,8 +4,8 @@ namespace MinimalLambda.SourceGenerators; internal static class Diagnostics { - private const string UsageCategory = "AwsLambda.Host.Usage"; - private const string ConfigurationCategory = "AwsLambda.Host.Configuration"; + private const string UsageCategory = "MinimalLambda.Usage"; + private const string ConfigurationCategory = "MinimalLambda.Configuration"; internal static readonly DiagnosticDescriptor MultipleParametersUseAttribute = new( "LH0002", @@ -28,7 +28,7 @@ internal static class Diagnostics public static readonly DiagnosticDescriptor CSharpVersionTooLow = new( "LH0004", "C# language version too low", - "AwsLambda.Host requires C# 11 or newer (or LanguageVersion=default with a modern SDK). " + "MinimalLambda requires C# 11 or newer (or LanguageVersion=default with a modern SDK). " + "Set latest or enable preview features.", ConfigurationCategory, DiagnosticSeverity.Error, diff --git a/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs b/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs index 69ccd7d4..e7057203 100644 --- a/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs +++ b/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs @@ -5,7 +5,7 @@ internal static class TypeConstants { internal const string ILambdaContext = "global::Amazon.Lambda.Core.ILambdaContext"; - internal const string ILambdaHostContext = "global::AwsLambda.Host.Core.ILambdaHostContext"; + internal const string ILambdaHostContext = "global::MinimalLambda.Core.ILambdaHostContext"; internal const string CancellationToken = "global::System.Threading.CancellationToken"; @@ -29,7 +29,7 @@ internal static class TypeConstants /// Constants for attribute names used in source generation. internal static class AttributeConstants { - internal const string EventAttribute = "AwsLambda.Host.Builder.EventAttribute"; + internal const string EventAttribute = "MinimalLambda.Builder.EventAttribute"; internal const string FromKeyedService = "Microsoft.Extensions.DependencyInjection.FromKeyedServicesAttribute"; diff --git a/src/MinimalLambda.SourceGenerators/README.md b/src/MinimalLambda.SourceGenerators/README.md index 94287259..369af700 100644 --- a/src/MinimalLambda.SourceGenerators/README.md +++ b/src/MinimalLambda.SourceGenerators/README.md @@ -1,4 +1,4 @@ -# AwsLambda.Host.SourceGenerators +# MinimalLambda.SourceGenerators ## Notes diff --git a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs index c33ac21d..afd9cc79 100644 --- a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs @@ -46,7 +46,7 @@ is not IInvocationOperation }, }, } targetOperation - || targetOperation.TargetMethod.ContainingAssembly.Name != "AwsLambda.Host" + || targetOperation.TargetMethod.ContainingAssembly.Name != "MinimalLambda" ) return null; diff --git a/src/MinimalLambda.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs index 4d2b1fdd..ae329bd4 100644 --- a/src/MinimalLambda.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/LambdaApplicationBuilderBuildSyntaxProvider.cs @@ -38,7 +38,7 @@ is IInvocationOperation }, }, } targetOperation - && targetOperation.TargetMethod.ContainingAssembly.Name == "AwsLambda.Host" + && targetOperation.TargetMethod.ContainingAssembly.Name == "MinimalLambda" ) { var interceptableLocation = context.SemanticModel.GetInterceptableLocation( diff --git a/tasks/FormattingTasks.yml b/tasks/FormattingTasks.yml index d503097a..71ed9f57 100644 --- a/tasks/FormattingTasks.yml +++ b/tasks/FormattingTasks.yml @@ -17,8 +17,8 @@ tasks: - echo "πŸ”§ Running CleanupCode for code cleanup and style enforcement..." - | dotnet jb cleanupcode \ - AwsLambda.Host.sln \ - --settings="AwsLambda.Host.sln.DotSettings" \ + MinimalLambda.sln \ + --settings="MinimalLambda.sln.DotSettings" \ --profile="Full Cleanup Custom" \ --verbosity=INFO \ --no-build diff --git a/tasks/PublishTasks.yml b/tasks/PublishTasks.yml index be460e2f..6812f8d0 100644 --- a/tasks/PublishTasks.yml +++ b/tasks/PublishTasks.yml @@ -31,13 +31,13 @@ tasks: - echo "πŸ” Validating all versions" - task: validate_version vars: - DIR: src/AwsLambda.Host + DIR: src/MinimalLambda - task: validate_version vars: - DIR: src/AwsLambda.Host.Abstractions + DIR: src/MinimalLambda.Abstractions - task: validate_version vars: - DIR: src/AwsLambda.Host.OpenTelemetry + DIR: src/MinimalLambda.OpenTelemetry - echo "πŸš€ Publishing all packages" - task: publish - echo "✨ All packages published successfully!" diff --git a/tasks/TestTasks.yml b/tasks/TestTasks.yml index d8275c5d..92b53388 100644 --- a/tasks/TestTasks.yml +++ b/tasks/TestTasks.yml @@ -30,7 +30,7 @@ tasks: silent: true cmds: - echo "πŸ‘€ Starting test watch mode" - - dotnet watch --project tests/AwsLambda.Host.Tests test --configuration Release + - dotnet watch --project tests/MinimalLambda.Tests test --configuration Release verbose: desc: Run tests with detailed output for debugging diff --git a/tests/MinimalLambda.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs index 8cf123ea..6fed499e 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/AlbRequestEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.ApplicationLoadBalancerEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.Alb; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs index 484b8b35..b925c331 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/AlbResponseEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.ApplicationLoadBalancerEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.Alb; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs index 2de1375c..4d9b88a1 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayRequestEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.ApiGateway; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs index e28725e9..f370ef60 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayResponseEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.ApiGateway; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs index eca50d42..a6f6e207 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2RequestEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.ApiGateway; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs index 3bb12df3..90a7962c 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/ApiGatewayV2ResponseEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.APIGatewayEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.ApiGateway; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs index 321dc007..1845c2f2 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/CloudWatchLogsEnvelopeTests.cs @@ -5,9 +5,9 @@ using Amazon.Lambda.CloudWatchLogsEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.CloudWatchLogs; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/KafkaEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KafkaEnvelopeTests.cs index 1cc1fedf..05f3d97e 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/KafkaEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KafkaEnvelopeTests.cs @@ -4,9 +4,9 @@ using Amazon.Lambda.KafkaEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Envelopes.Kafka; -using AwsLambda.Host.Options; using JetBrains.Annotations; +using MinimalLambda.Envelopes.Kafka; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/KinesisEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KinesisEnvelopeTests.cs index bcda47e6..b622885b 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/KinesisEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KinesisEnvelopeTests.cs @@ -4,9 +4,9 @@ using Amazon.Lambda.KinesisEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.Kinesis; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs index 851bfb53..2948f9c1 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseEventEnvelopeTests.cs @@ -4,9 +4,9 @@ using Amazon.Lambda.KinesisFirehoseEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.KinesisFirehose; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs index a7bf04ed..a2bfecca 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/KinesisFirehoseResponseEnvelopeTests.cs @@ -4,9 +4,9 @@ using Amazon.Lambda.KinesisFirehoseEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.KinesisFirehose; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/SnsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/SnsEnvelopeTests.cs index 1490b6e2..e8a9f3ac 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/SnsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/SnsEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.SNSEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.Sns; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/SqsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/SqsEnvelopeTests.cs index 7f81ce3e..394b4d01 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/SqsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/SqsEnvelopeTests.cs @@ -3,9 +3,9 @@ using Amazon.Lambda.SQSEvents; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.Sqs; +using MinimalLambda.Options; using Xunit; using SQSMessage = Amazon.Lambda.SQSEvents.SQSEvent.SQSMessage; diff --git a/tests/MinimalLambda.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs b/tests/MinimalLambda.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs index 5c9dc78d..c4007361 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs +++ b/tests/MinimalLambda.Envelopes.UnitTests/SqsSnsEnvelopeTests.cs @@ -1,10 +1,10 @@ using System.Text.Json; using AutoFixture; using AwesomeAssertions; -using AwsLambda.Host.Options; using JetBrains.Annotations; using MinimalLambda.Envelopes.Sns; using MinimalLambda.Envelopes.Sqs; +using MinimalLambda.Options; using Xunit; namespace MinimalLambda.Envelopes.UnitTests; diff --git a/tests/MinimalLambda.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs index 1c549b23..7746bf6c 100644 --- a/tests/MinimalLambda.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/AutoNSubstituteDataAttribute.cs @@ -1,6 +1,6 @@ using AutoFixture.AutoNSubstitute; -namespace AwsLambda.Host.UnitTests; +namespace MinimalLambda.UnitTests; public class AutoNSubstituteDataAttribute() : AutoDataAttribute(() => diff --git a/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs index d3b1a14d..298a3e98 100644 --- a/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs @@ -1,10 +1,10 @@ global using AutoFixture; global using AutoFixture.Xunit3; global using AwesomeAssertions; -global using AwsLambda.Host; -global using AwsLambda.Host.Builder; -global using AwsLambda.Host.Core; -global using AwsLambda.Host.Options; global using JetBrains.Annotations; +global using MinimalLambda; +global using MinimalLambda.Builder; +global using MinimalLambda.Core; +global using MinimalLambda.Options; global using NSubstitute; global using Xunit; diff --git a/tests/MinimalLambda.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs index 45b95958..22d5d446 100644 --- a/tests/MinimalLambda.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/LambdaOpenTelemetryServiceProviderExtensionsTests.cs @@ -1,5 +1,5 @@ -using AwsLambda.Host.UnitTests; using Microsoft.Extensions.DependencyInjection; +using MinimalLambda.UnitTests; using OpenTelemetry.Trace; namespace MinimalLambda.OpenTelemetry.UnitTests; diff --git a/tests/MinimalLambda.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs index 3664d0ea..301d7564 100644 --- a/tests/MinimalLambda.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/MiddlewareOpenTelemetryExtensionsTest.cs @@ -1,4 +1,4 @@ -using AwsLambda.Host.UnitTests; +using MinimalLambda.UnitTests; using OpenTelemetry.Trace; namespace MinimalLambda.OpenTelemetry.UnitTests; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/DiagnosticTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/DiagnosticTests.cs index d1059fae..363d35f6 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/DiagnosticTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/DiagnosticTests.cs @@ -12,8 +12,8 @@ public void Test_MultipleMapHandlersNotFound() { var diagnostics = GenerateDiagnostics( """ - using AwsLambda.Host; - using AwsLambda.Host.Builder; + using MinimalLambda; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -34,8 +34,8 @@ public void Test_MultipleMapHandlersFound() { var diagnostics = GenerateDiagnostics( """ - using AwsLambda.Host; - using AwsLambda.Host.Builder; + using MinimalLambda; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -58,8 +58,8 @@ public void Test_MultipleParametersWithRequestAttribute() { var diagnostics = GenerateDiagnostics( """ - using AwsLambda.Host; - using AwsLambda.Host.Builder; + using MinimalLambda; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -86,8 +86,8 @@ public void Test_KeyedService_InvalidKey_Array() { var diagnostics = GenerateDiagnostics( """ - using AwsLambda.Host; - using AwsLambda.Host.Builder; + using MinimalLambda; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -127,8 +127,8 @@ public void Test_CSharpVersionTooLow() { var diagnostics = GenerateDiagnostics( """ - using AwsLambda.Host; - using AwsLambda.Host.Builder; + using MinimalLambda; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index 9f1753bb..5b86b6f8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -65,7 +65,7 @@ internal static (GeneratorDriver driver, Compilation compilation) GenerateFromSo { IEnumerable> features = [ - new("InterceptorsNamespaces", "AwsLambda.Host"), + new("InterceptorsNamespaces", "MinimalLambda"), ]; var parseOptions = CSharpParseOptions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs index 518692f3..7d90fea2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs index cde8382d..4b5cb4fb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs index b41198ba..e7b3fca0 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs index 5f42da6f..39461d4f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 8a745f64..9f907209 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 7d8c54e5..cf9f6d18 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs index 412ef39e..7b5a13ea 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs index 0005d4c5..589fbb9a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs index ce5d21e1..f63a3123 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs index 900ddfd8..a5885bd2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs index 220a88b4..7cdb309e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs index 547f8219..a0910ae8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs index fcfd992b..621c1db4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs index b3195ead..101f6362 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs index 73a21102..bb57222e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; @@ -64,7 +64,7 @@ Task InvocationDelegate(ILambdaHostContext context) { // ParameterInfo { Type = global::System.Threading.CancellationToken, Name = ct, Source = CancellationToken, IsNullable = False, IsOptional = False} var arg0 = context.CancellationToken; - // ParameterInfo { Type = global::AwsLambda.Host.Core.ILambdaHostContext, Name = ctx, Source = Context, IsNullable = False, IsOptional = False} + // ParameterInfo { Type = global::MinimalLambda.Core.ILambdaHostContext, Name = ctx, Source = Context, IsNullable = False, IsOptional = False} var arg1 = context; var response = castHandler.Invoke(arg0, arg1); if (context.Features.Get() is not IResponseFeature responseFeature) diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs index f1f90c8b..8476a3a8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs index b953e161..2e870b00 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs index 28ae85f0..b48f769a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs index 6edef637..98f6426d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs index ffcaeb9a..9f354c44 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs index fbe2b77c..e701960b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs index 1580b28e..a2be15fe 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs index fda5e96b..3005c812 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs index cd6c9af3..2efa0ee8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs index 72d1f804..54c90eb5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs index e2d8b846..406787e9 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs index 458ef758..cfacc464 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 813f152e..9755ffde 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs index 0e62b5fc..094d2bd2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 5087d458..eba414e1 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs index 2dba39bb..8c1ef138 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs index e4ed71ea..b5371037 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs index 36d24e7d..09370605 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs index eb3ae173..061d7940 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs index 9e73dced..917e0219 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs index ab6e5017..d784e1f1 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs index b8c84fea..f15a1585 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs index e5617b08..a5059271 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs index 4f97c50b..81f4f40d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs index 8acce829..3da476f5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs index 3f628453..2405c8b8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs index 1669ded6..e280e9ec 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs index e600c6b0..0f9ebb2f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs index 9890cba1..3e54c2e4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs index 2304a93d..ac210cef 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs index 7f3b78d3..5784ad2a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs index c9c29a78..6dd8edd3 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs index 0b1aeceb..d2d8a35e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs index 5bb50727..23affb97 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs index cc5d48f4..8048e257 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs index f0e1a2ac..f5d720e3 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput#LambdaHandler.g.verified.cs @@ -23,14 +23,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host +namespace MinimalLambda { using System; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - + file static class LambdaHostOnInitExtensions { // Location: InputFile.cs(9,8) @@ -44,8 +44,8 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati { return handler(); } - + return application.OnInit(OnInit); } } -} \ No newline at end of file +} diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs index 6f47576d..ff1aea25 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs index 8afa2576..5237b816 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs index 8fbae0b4..c1cb334c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs index 5bee3518..d6939cf1 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs index e4425a53..3e8f8280 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs index 79c64ecb..2735351a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs index e47131e9..39d3ad8c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index eb4850f2..4f718bc7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index fd50afa1..858ecd07 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs index e5af2083..d46a50e8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs index 9a74ce4e..3d3e32cf 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs index ff4193ef..c281fb59 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs index abadf96e..4462e464 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs index 7bb1dfa1..cb1b9061 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs index 388bc650..42e7d12c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs index a71fad70..ce89580e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index 0b7de3ea..af4acddb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index 38f7d803..864b1d0d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs index a126207c..410dfa39 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace AwsLambda.Host.Core.Generated +namespace MinimalLambda.Core.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs index 224cb735..ade59361 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs @@ -7,8 +7,8 @@ public async Task Test_BlockLambda_ReturnExplicitType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -49,8 +49,8 @@ public class OtherService : IService public async Task Test_BlockLambda_ReturnString() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -73,8 +73,8 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -106,8 +106,8 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); var lambda = builder.Build(); @@ -129,8 +129,8 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); var lambda = builder.Build(); @@ -144,8 +144,8 @@ public async Task Test_BlockLambda_TypeCast() => await GeneratorTestHelpers.Verify( """ using System; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -175,8 +175,8 @@ public async Task Test_BlockLambda_NoTypeInfo_TypeCast() => await GeneratorTestHelpers.Verify( """ using System; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -207,8 +207,8 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -236,8 +236,8 @@ public interface IService public async Task Test_BlockLambda_ReturnImplicitNullable() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -264,8 +264,8 @@ public async Task Test_BlockLambda_StreamResponse() => await GeneratorTestHelpers.Verify( """ using System.IO; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -284,8 +284,8 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using Amazon.Lambda.Core; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -321,8 +321,8 @@ public async Task Test_BlockLambda_ReturnTaskString() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs index 6dc85847..44bae29c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs @@ -7,8 +7,8 @@ public async Task Test_ExpressionLambda_MainOverload_NoOp() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -28,8 +28,8 @@ await GeneratorTestHelpers.Verify( using System.IO; using System.Threading.Tasks; using Amazon.Lambda.Core; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -46,8 +46,8 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_NoOutput() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -64,8 +64,8 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_ReturnString() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -82,8 +82,8 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_ReturnNullablePrimitive() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -99,8 +99,8 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_ReturnGenericObject() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -120,8 +120,8 @@ record Data(string Message); public async Task Test_ExpressionLambda_InputDi_Async() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -146,8 +146,8 @@ public async Task Test_ExpressionLambda_InputDi_AsyncAndAwait() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -172,8 +172,8 @@ public async Task Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDi await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; using MyNamespace; @@ -207,8 +207,8 @@ public async Task Test_ExpressionLambda_ReturnExplicitType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -242,8 +242,8 @@ public class OtherService : IService public async Task Test_ExpressionLambda_NullableInput_ReturnImplicitNullable() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -264,8 +264,8 @@ public interface IService public async Task Test_ExpressionLambda_NullableInput_ReturnExplicitNullable() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -290,8 +290,8 @@ await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; using Amazon.Lambda.Core; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -328,8 +328,8 @@ public async Task Test_ExpressionLambda_Async_ReturnExplicitTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -346,8 +346,8 @@ public async Task Test_ExpressionLambda_ReturnExplicitTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -367,8 +367,8 @@ public async Task Test_ExpressionLambda_AsksForCancellationToken() => await GeneratorTestHelpers.Verify( """ using System.Threading; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -386,8 +386,8 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using Amazon.Lambda.Core; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -405,8 +405,8 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using Amazon.Lambda.Core; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -423,8 +423,8 @@ public async Task Test_ExpressionLambda_InputStream() => await GeneratorTestHelpers.Verify( """ using System.IO; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -441,8 +441,8 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_ExplicitVoid() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs index ae01724f..861fffa5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs @@ -6,8 +6,8 @@ public class KeyedServiceVerifyTests public async Task Test_KeyedService_StringAndEnumKeys() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -50,8 +50,8 @@ public class Service : IService public async Task Test_KeyedService_IntAndLongKeys() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -83,8 +83,8 @@ public class Service : IService public async Task Test_KeyedService_SmallIntegerTypes() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -121,8 +121,8 @@ public class Service : IService public async Task Test_KeyedService_UnsignedIntegerTypes() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -159,8 +159,8 @@ public class Service : IService public async Task Test_KeyedService_FloatingPointTypes() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -195,8 +195,8 @@ public class Service : IService public async Task Test_KeyedService_OtherTypes() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs index 8ff28cee..140d0675 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs @@ -6,8 +6,8 @@ public class OnInitVerifyTests public async Task Test_OnInit_BaseMethodCall() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -30,8 +30,8 @@ public async Task Test_OnInit_ExplicitReturnTypeAsync() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -52,8 +52,8 @@ public async Task Test_OnInit_NoInput_NoOutput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -71,8 +71,8 @@ public async Task Test_OnInit_NoInput_ReturnBool() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -90,8 +90,8 @@ public async Task Test_OnInit_NoInput_ReturnTaskBool() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -109,8 +109,8 @@ public async Task Test_OnInit_NoInput_ReturnAsyncBool() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -128,8 +128,8 @@ public async Task Test_OnInit_NoInput_ReturnNotExpectedType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -147,8 +147,8 @@ public async Task Test_OnInit_NoInput_ReturnNotExpectedTypeTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -166,8 +166,8 @@ public async Task Test_OnInit_NoInput_ReturnNotExpectedTypeAsync() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -185,8 +185,8 @@ public async Task Test_OnInit_PrimitiveInput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -209,8 +209,8 @@ public async Task Test_OnInit_NullableValueAndReferenceInputs() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -239,8 +239,8 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -275,8 +275,8 @@ public async Task Test_OnInit_MultipleCalls() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -316,8 +316,8 @@ public async Task Test_OnInit_MethodHandler_NoDi() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -343,8 +343,8 @@ public async Task Test_OnInit_MethodHandler_AsyncAndDi() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -375,8 +375,8 @@ public async Task Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType() await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs index e9522689..c84f7abe 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs @@ -6,8 +6,8 @@ public class OnShutdownVerifyTests public async Task Test_OnShutdown_BaseMethodCall() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -30,8 +30,8 @@ public async Task Test_OnShutdown_NoInput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -52,8 +52,8 @@ public async Task Test_OnShutdown_NoInput_ReturnUnexpectedType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -74,8 +74,8 @@ public async Task Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -96,8 +96,8 @@ public async Task Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -118,8 +118,8 @@ public async Task Test_OnShutdown_PrimitiveInput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -142,8 +142,8 @@ public async Task Test_OnShutdown_NullableValueAndReferenceInputs() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -172,8 +172,8 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -208,8 +208,8 @@ public async Task Test_OnShutdown_MultipleCalls() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -248,8 +248,8 @@ public interface IService public async Task Test_OnShutdown_BlockLambda_ReturnsImplicitVoid() => await GeneratorTestHelpers.Verify( """ - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; using System; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs index 55a83301..1edc412e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs @@ -7,8 +7,8 @@ public async Task Test_MethodHandler_NoInput_NoOutput() => await GeneratorTestHelpers.Verify( """ using System; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -32,8 +32,8 @@ public async Task Test_MethodHandler_BlockBody_InputDiKeyedServices() => await GeneratorTestHelpers.Verify( """ using Amazon.Lambda.Core; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -69,8 +69,8 @@ public async Task Test_MethodHandler_BlockBody_TypeCast_Static() => await GeneratorTestHelpers.Verify( """ using System; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -92,8 +92,8 @@ public async Task Test_MethodHandler_BlockBody_TypeCast() => await GeneratorTestHelpers.Verify( """ using System; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -118,8 +118,8 @@ public async Task Test_MethodHandler_TypeCast_ExtraParentheses() => await GeneratorTestHelpers.Verify( """ using System; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -141,8 +141,8 @@ public async Task Test_MethodHandler_ReturnTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -166,8 +166,8 @@ public async Task Test_MethodHandler_ReturnTaskString() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -191,8 +191,8 @@ public async Task Test_MethodHandler_Async_ReturnTaskString() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); @@ -216,8 +216,8 @@ public async Task Test_MethodHandler_AsyncVoid() => await GeneratorTestHelpers.Verify( """ using System; - using AwsLambda.Host.Core; - using AwsLambda.Host.Builder; + using MinimalLambda.Core; + using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; var builder = LambdaApplication.CreateBuilder(); diff --git a/tests/MinimalLambda.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs index b62fb887..e010c594 100644 --- a/tests/MinimalLambda.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/MiddlewareLambdaApplicationExtensionsTests.cs @@ -1,4 +1,3 @@ -using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs index bedd4394..1696196a 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs @@ -1,4 +1,3 @@ -using AwsLambda.Host; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs index b37286a0..a020fc85 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationTests.cs @@ -1,4 +1,3 @@ -using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaInvocationBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaInvocationBuilderTests.cs index dde92019..7b869b48 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaInvocationBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaInvocationBuilderTests.cs @@ -1,5 +1,3 @@ -using AwsLambda.Host; - namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(LambdaInvocationBuilder))] diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs index ad57a04c..36ba9356 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs @@ -1,4 +1,3 @@ -using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs index 5f17ad1e..e3483509 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaOnShutdownBuilderTests.cs @@ -1,4 +1,3 @@ -using AwsLambda.Host; using Microsoft.Extensions.DependencyInjection; namespace MinimalLambda.UnitTests.Builder; diff --git a/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs index 1808eef2..5f6af7d9 100644 --- a/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Runtime/LambdaHandlerComposerTests.cs @@ -1,4 +1,3 @@ -using AwsLambda.Host; using Microsoft.Extensions.Options; namespace MinimalLambda.UnitTests.Core.Runtime; From fce91b64cc3b3878321f173e80dd473884f83117 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:16:57 -0500 Subject: [PATCH 03/25] refactor: simplify namespace from MinimalLambda.Host to MinimalLambda - Replaced all occurrences of the `MinimalLambda.Host` namespace with `MinimalLambda`. - Updated related unit tests, examples, and benchmark projects to use the new namespace. - Adjusted global using directives and documentation references accordingly. --- benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs | 2 +- examples/MinimalLambda.Example.Events/Program.cs | 2 +- examples/MinimalLambda.Example.HelloWorld/Program.cs | 2 +- examples/MinimalLambda.Example.HelloWorldAot/Program.cs | 2 +- examples/MinimalLambda.Example.Lifecycle/Program.cs | 2 +- examples/MinimalLambda.Example.OpenTelemetry/Function.cs | 2 +- examples/MinimalLambda.Example.OpenTelemetry/Program.cs | 2 +- .../Builder/DefaultLambdaInvocationBuilderFactory.cs | 2 +- .../Builder/DefaultLambdaOnInitBuilderFactory.cs | 2 +- .../Builder/DefaultLambdaOnShutdownBuilderFactory.cs | 2 +- src/MinimalLambda.Core/Builder/EventAttribute.cs | 2 +- .../Extensions/BuilderLambdaApplicationExtensions.cs | 2 +- .../LambdaHttpClientServiceCollectionExtensions.cs | 2 +- .../Extensions/MiddlewareLambdaApplicationExtensions.cs | 2 +- .../Builder/ILambdaInvocationBuilderFactory.cs | 2 +- .../Builder/ILambdaOnInitBuilderFactory.cs | 2 +- .../Builder/ILambdaOnShutdownBuilderFactory.cs | 2 +- .../MapHandlerLambdaApplicationExtensions.cs | 2 +- .../OnInitLambdaApplicationExtensions.cs | 2 +- .../OnShutdownLambdaApplicationExtensions.cs | 2 +- src/MinimalLambda.Core/Builder/LambdaApplication.cs | 2 +- .../Builder/LambdaApplicationBuilder.cs | 4 ++-- src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs | 2 +- src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs | 2 +- src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs | 2 +- .../Middleware/ClearLambdaOutputFormattingMiddleware.cs | 2 +- .../Builder/Middleware/RequestEnvelopeMiddleware.cs | 2 +- .../OnInit/OutputFormattingLambdaApplicationExtensions.cs | 2 +- .../Core/Cancellation/DefaultLambdaCancellationFactory.cs | 2 +- .../Core/Context/DefaultLambdaHostContext.cs | 2 +- .../Core/Context/ILambdaHostContextFactory.cs | 2 +- .../Core/Context/LambdaHostContextAccessor.cs | 2 +- .../Core/Context/LambdaHostContextFactory.cs | 2 +- .../Core/Features/DefaultEventFeature.cs | 2 +- .../Core/Features/DefaultEventFeatureProvider.cs | 2 +- .../Core/Features/DefaultFeatureCollection.cs | 2 +- .../Core/Features/DefaultFeatureCollectionFactory.cs | 2 +- .../Core/Features/DefaultResponseFeature.cs | 2 +- .../Core/Features/DefaultResponseFeatureProvider.cs | 2 +- .../Core/Features/EventFeatureProviderFactory.cs | 2 +- .../Core/Features/FeatureCollectionExtensions.cs | 2 +- .../Core/Features/FeatureLambdaHostContextExtensions.cs | 2 +- .../Core/Features/IFeatureCollectionFactory.cs | 2 +- .../Core/Features/IInvocationDataFeatureFactory.cs | 2 +- .../Core/Features/InvocationDataFeature.cs | 2 +- .../Core/Features/InvocationDataFeatureFactory.cs | 2 +- .../Core/Features/ResponseFeatureProviderFactory.cs | 2 +- .../Core/Options/EnvelopeOptionsPostConfiguration.cs | 2 +- .../Core/Options/HostOptionsPostConfiguration.cs | 2 +- .../Core/Options/LambdaApplicationOptions.cs | 2 +- src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs | 4 ++-- .../Core/Options/LambdaHostedServiceOptions.cs | 2 +- src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs | 2 +- src/MinimalLambda.Core/GlobalUsings.cs | 8 ++++---- .../Runtime/ILambdaBootstrapOrchestrator.cs | 2 +- src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs | 2 +- src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs | 2 +- src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs | 2 +- src/MinimalLambda.Core/Runtime/LambdaHostedService.cs | 2 +- .../GeneratorTestHelpers.cs | 2 +- ...lockLambda_AllInputSources#LambdaHandler.g.verified.cs | 4 ++-- ..._ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs | 4 ++-- ...ckLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs | 4 ++-- ...Lambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs | 4 ++-- ...kLambda_ReturnExplicitType#LambdaHandler.g.verified.cs | 4 ++-- ...bda_ReturnImplicitNullable#LambdaHandler.g.verified.cs | 4 ++-- ...t_BlockLambda_ReturnString#LambdaHandler.g.verified.cs | 4 ++-- ...ockLambda_ReturnTaskString#LambdaHandler.g.verified.cs | 4 ++-- ...ambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs | 4 ++-- ...BlockLambda_StreamResponse#LambdaHandler.g.verified.cs | 4 ++-- ....Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs | 4 ++-- ...ast_InputFromKeyedServices#LambdaHandler.g.verified.cs | 4 ++-- ...a_AsksForCancellationToken#LambdaHandler.g.verified.cs | 4 ++-- ...ationTokenAndLambdaContext#LambdaHandler.g.verified.cs | 4 ++-- ...nTokenAndLambdaHostContext#LambdaHandler.g.verified.cs | 6 +++--- ...a_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs | 4 ++-- ...ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs | 4 ++-- ...ressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs | 4 ++-- ...essionLambda_InputDi_Async#LambdaHandler.g.verified.cs | 4 ++-- ...mbda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs | 4 ++-- ...ResponseDifferentNamespace#LambdaHandler.g.verified.cs | 4 ++-- ...pressionLambda_InputStream#LambdaHandler.g.verified.cs | 4 ++-- ...ionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs | 4 ++-- ...oInput_ReturnGenericObject#LambdaHandler.g.verified.cs | 4 ++-- ...ut_ReturnNullablePrimitive#LambdaHandler.g.verified.cs | 4 ++-- ...ambda_NoInput_ReturnString#LambdaHandler.g.verified.cs | 4 ++-- ...put_ReturnExplicitNullable#LambdaHandler.g.verified.cs | 4 ++-- ...put_ReturnImplicitNullable#LambdaHandler.g.verified.cs | 4 ++-- ...nLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs | 4 ++-- ...nLambda_ReturnExplicitType#LambdaHandler.g.verified.cs | 4 ++-- ...Service_FloatingPointTypes#LambdaHandler.g.verified.cs | 4 ++-- ...eyedService_IntAndLongKeys#LambdaHandler.g.verified.cs | 4 ++-- ...st_KeyedService_OtherTypes#LambdaHandler.g.verified.cs | 4 ++-- ...dService_SmallIntegerTypes#LambdaHandler.g.verified.cs | 4 ++-- ...dService_StringAndEnumKeys#LambdaHandler.g.verified.cs | 4 ++-- ...rvice_UnsignedIntegerTypes#LambdaHandler.g.verified.cs | 4 ++-- ...st_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs | 4 ++-- ...ler_Async_ReturnTaskString#LambdaHandler.g.verified.cs | 4 ++-- ...kBody_InputDiKeyedServices#LambdaHandler.g.verified.cs | 4 ++-- ...Handler_BlockBody_TypeCast#LambdaHandler.g.verified.cs | 4 ++-- ..._BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs | 4 ++-- ...odHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs | 4 ++-- ...t_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs | 4 ++-- ...odHandler_ReturnTaskString#LambdaHandler.g.verified.cs | 4 ++-- ..._TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs | 4 ++-- ...it_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...t_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs | 2 +- ...dDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs | 2 +- ..._OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs | 2 +- ....Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs | 2 +- ...st_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs | 2 +- ...it_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs | 2 +- ..._OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs | 2 +- ...nput_ReturnNotExpectedType#LambdaHandler.g.verified.cs | 2 +- ...ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs | 2 +- ..._ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs | 2 +- ...nit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs | 2 +- ...bleValueAndReferenceInputs#LambdaHandler.g.verified.cs | 2 +- ...eOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs | 2 +- ...Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs | 2 +- ...Lambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs | 2 +- ...t_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs | 2 +- ...ts.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs | 2 +- ...Input_ReturnUnexpectedType#LambdaHandler.g.verified.cs | 2 +- ..._ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...t_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs | 2 +- ...bleValueAndReferenceInputs#LambdaHandler.g.verified.cs | 2 +- ...eOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs | 2 +- ..._OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs | 2 +- .../Types/HashCodeTests.cs | 2 +- .../LambdaHttpClientServiceCollectionExtensionsTests.cs | 2 +- tests/MinimalLambda.UnitTests/GlobalUsings.cs | 8 ++++---- 132 files changed, 186 insertions(+), 186 deletions(-) diff --git a/benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs b/benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs index 584029ca..b1115410 100644 --- a/benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs +++ b/benchmarks/MinimalLambda.Benchmarks/Benchmarks.cs @@ -1,5 +1,5 @@ ο»Ώusing BenchmarkDotNet.Attributes; -using MinimalLambda.Host.Builder; +using MinimalLambda.Builder; namespace MinimalLambda.Benchmarks; diff --git a/examples/MinimalLambda.Example.Events/Program.cs b/examples/MinimalLambda.Example.Events/Program.cs index d9ce96a5..752238b1 100644 --- a/examples/MinimalLambda.Example.Events/Program.cs +++ b/examples/MinimalLambda.Example.Events/Program.cs @@ -5,8 +5,8 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; +using MinimalLambda.Builder; using MinimalLambda.Envelopes.ApiGateway; -using MinimalLambda.Host.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/MinimalLambda.Example.HelloWorld/Program.cs b/examples/MinimalLambda.Example.HelloWorld/Program.cs index 91766b91..fb355c6b 100644 --- a/examples/MinimalLambda.Example.HelloWorld/Program.cs +++ b/examples/MinimalLambda.Example.HelloWorld/Program.cs @@ -1,6 +1,6 @@ ο»Ώusing System; using Microsoft.Extensions.Hosting; -using MinimalLambda.Host.Builder; +using MinimalLambda.Builder; // Create the application builder var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/MinimalLambda.Example.HelloWorldAot/Program.cs b/examples/MinimalLambda.Example.HelloWorldAot/Program.cs index 1c6f170b..3cee8ebc 100644 --- a/examples/MinimalLambda.Example.HelloWorldAot/Program.cs +++ b/examples/MinimalLambda.Example.HelloWorldAot/Program.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using MinimalLambda.Host.Builder; +using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/MinimalLambda.Example.Lifecycle/Program.cs b/examples/MinimalLambda.Example.Lifecycle/Program.cs index 8fe41e13..3692dabc 100644 --- a/examples/MinimalLambda.Example.Lifecycle/Program.cs +++ b/examples/MinimalLambda.Example.Lifecycle/Program.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using MinimalLambda.Host.Builder; +using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/examples/MinimalLambda.Example.OpenTelemetry/Function.cs b/examples/MinimalLambda.Example.OpenTelemetry/Function.cs index 481f3f67..0b67d6a7 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/Function.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Function.cs @@ -1,4 +1,4 @@ -using MinimalLambda.Host.Builder; +using MinimalLambda.Builder; namespace MinimalLambda.Example.OpenTelemetry; diff --git a/examples/MinimalLambda.Example.OpenTelemetry/Program.cs b/examples/MinimalLambda.Example.OpenTelemetry/Program.cs index 53de3911..3dce6c63 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/Program.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Program.cs @@ -1,5 +1,5 @@ ο»Ώusing Microsoft.Extensions.Hosting; -using MinimalLambda.Host.Builder; +using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); diff --git a/src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs b/src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs index 715f4e9b..5eb974c1 100644 --- a/src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal class DefaultLambdaInvocationBuilderFactory(IServiceProvider serviceProvider) : ILambdaInvocationBuilderFactory diff --git a/src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs b/src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs index b2aba949..bde176c7 100644 --- a/src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal class DefaultLambdaOnInitBuilderFactory( IServiceProvider serviceProvider, diff --git a/src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs b/src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs index 71a4c5f1..a9038709 100644 --- a/src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal class DefaultLambdaOnShutdownBuilderFactory( IServiceProvider serviceProvider, diff --git a/src/MinimalLambda.Core/Builder/EventAttribute.cs b/src/MinimalLambda.Core/Builder/EventAttribute.cs index 82a6df34..842681d3 100644 --- a/src/MinimalLambda.Core/Builder/EventAttribute.cs +++ b/src/MinimalLambda.Core/Builder/EventAttribute.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Marks a parameter to receive the deserialized Lambda event object. /// diff --git a/src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs index 538d450d..7182a4ed 100644 --- a/src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// /// Provides extension methods on for creating and diff --git a/src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs index 7685c147..3c46b6aa 100644 --- a/src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs +++ b/src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -namespace MinimalLambda.Host.Builder.Extensions; +namespace MinimalLambda.Builder.Extensions; /// /// Extension methods for configuring the Lambda bootstrap HTTP client in an diff --git a/src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs index 1183251c..c9a35cd2 100644 --- a/src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Provides extension methods for adding middleware to the Lambda invocation pipeline. public static class MiddlewareLambdaApplicationExtensions diff --git a/src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs b/src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs index f4452333..ca6297c4 100644 --- a/src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal interface ILambdaInvocationBuilderFactory { diff --git a/src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs b/src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs index 894107c2..6288c67a 100644 --- a/src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal interface ILambdaOnInitBuilderFactory { diff --git a/src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs b/src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs index eefdc771..167058c5 100644 --- a/src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs +++ b/src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal interface ILambdaOnShutdownBuilderFactory { diff --git a/src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs index fa058d67..ba2d17c3 100644 --- a/src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// /// Overloads for diff --git a/src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs index 0ac64d9b..c2f8f029 100644 --- a/src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// /// Overloads for that support diff --git a/src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs index 49871606..7ccaea58 100644 --- a/src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// /// Overloads for diff --git a/src/MinimalLambda.Core/Builder/LambdaApplication.cs b/src/MinimalLambda.Core/Builder/LambdaApplication.cs index bcfd6854..9f3f22e9 100644 --- a/src/MinimalLambda.Core/Builder/LambdaApplication.cs +++ b/src/MinimalLambda.Core/Builder/LambdaApplication.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// A Lambda application that provides host functionality for running AWS Lambda handlers. public sealed class LambdaApplication diff --git a/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs index d58221e0..b123ad3f 100644 --- a/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs @@ -15,7 +15,7 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// A builder for configuring and constructing an AWS Lambda Host application. /// @@ -59,7 +59,7 @@ internal LambdaApplicationBuilder(LambdaApplicationOptions? settings) ResolveContentRoot(settings); } - _hostBuilder = Microsoft.Extensions.Hosting.Host.CreateEmptyApplicationBuilder( + _hostBuilder = Host.CreateEmptyApplicationBuilder( new HostApplicationBuilderSettings { DisableDefaults = settings.DisableDefaults, diff --git a/src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs index 3152a889..a9b0111f 100644 --- a/src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal class LambdaInvocationBuilder : ILambdaInvocationBuilder { diff --git a/src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs index 4cd1a098..50a94ebd 100644 --- a/src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal class LambdaOnInitBuilder : ILambdaOnInitBuilder { diff --git a/src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs index 68706be5..be9080f4 100644 --- a/src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; internal class LambdaOnShutdownBuilder : ILambdaOnShutdownBuilder { diff --git a/src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs b/src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs index 92816c3f..6808ab63 100644 --- a/src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs +++ b/src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// /// Provides extension methods for clearing Lambda runtime output formatting in the middleware diff --git a/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs b/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs index e5602151..73d4bf92 100644 --- a/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs +++ b/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Provides middleware for processing Lambda event and response envelopes. public static class RequestEnvelopeMiddleware diff --git a/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs index 8f9576dd..84a34aca 100644 --- a/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Logging; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Provides extension methods for managing Lambda runtime output formatting. public static class OutputFormattingLambdaApplicationExtensions diff --git a/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs b/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs index 3f410b6e..e40cf4a4 100644 --- a/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs +++ b/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides functionality to create a with respect to diff --git a/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs b/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs index 6c74a692..0096dffd 100644 --- a/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs +++ b/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.DependencyInjection; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal sealed class DefaultLambdaHostContext : ILambdaHostContext, IAsyncDisposable { diff --git a/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs b/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs index 8aa87f97..f51314f3 100644 --- a/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs +++ b/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal interface ILambdaHostContextFactory { diff --git a/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs b/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs index 957189ae..a4497794 100644 --- a/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs +++ b/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs @@ -6,7 +6,7 @@ // See THIRD-PARTY-LICENSES.txt file in the project root or visit // https://github.com/dotnet/aspnetcore/blob/v10.0.0/LICENSE.txt -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal class LambdaHostContextAccessor : ILambdaHostContextAccessor { diff --git a/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs b/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs index e586fe8e..291e16d2 100644 --- a/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs +++ b/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.DependencyInjection; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal class LambdaHostContextFactory : ILambdaHostContextFactory { diff --git a/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs b/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs index a4946a3e..37516c85 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Default implementation of that is used by source generated diff --git a/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs b/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs index 7c391899..fc1a967a 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides a default implementation of for Lambda event diff --git a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs index 8fd28bbc..1966bbca 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs @@ -8,7 +8,7 @@ using System.Collections; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal class DefaultFeatureCollection : IFeatureCollection { diff --git a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs index 65a19fba..504da4c9 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal class DefaultFeatureCollectionFactory(IEnumerable providers) : IFeatureCollectionFactory diff --git a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs index 44caaf42..151f1514 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Default implementation of that is used by source diff --git a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs index 2924f9fe..e4d418ac 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs +++ b/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides a default implementation of for Lambda response diff --git a/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs b/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs index a69a1a4e..7cb60f98 100644 --- a/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal class EventFeatureProviderFactory(ILambdaSerializer lambdaSerializer) : IEventFeatureProviderFactory diff --git a/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs b/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs index e963797c..1bc38802 100644 --- a/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs +++ b/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs @@ -8,7 +8,7 @@ using System.Diagnostics.CodeAnalysis; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; /// Extension methods for feature collections. public static class FeatureCollectionExtensions diff --git a/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs b/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs index 072e831f..96818997 100644 --- a/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs +++ b/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs @@ -1,6 +1,6 @@ using System.Diagnostics.CodeAnalysis; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; /// /// Provides extension methods for safely accessing typed event and response data from the diff --git a/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs b/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs index 6870310b..39b00e24 100644 --- a/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal interface IFeatureCollectionFactory { diff --git a/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs b/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs index 99386d82..819401e4 100644 --- a/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal interface IInvocationDataFeatureFactory { diff --git a/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs b/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs index 34abe054..a24ac869 100644 --- a/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs +++ b/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal sealed class InvocationDataFeature : IInvocationDataFeature { diff --git a/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs b/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs index fc12755f..f42d1684 100644 --- a/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal class InvocationDataFeatureFactory : IInvocationDataFeatureFactory { diff --git a/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs b/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs index d8272089..ff88c27d 100644 --- a/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs +++ b/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Core; +namespace MinimalLambda.Core; internal class ResponseFeatureProviderFactory(ILambdaSerializer lambdaSerializer) : IResponseFeatureProviderFactory diff --git a/src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs b/src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs index 1a2a82de..e28e8398 100644 --- a/src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs +++ b/src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Options; +namespace MinimalLambda.Options; internal class EnvelopeOptionsPostConfiguration : IPostConfigureOptions { diff --git a/src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs b/src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs index f4a7a803..7dd0b927 100644 --- a/src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs +++ b/src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Options; +namespace MinimalLambda.Options; internal class HostOptionsPostConfiguration : IPostConfigureOptions { diff --git a/src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs b/src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs index 7e152015..79b51b06 100644 --- a/src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs +++ b/src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs @@ -10,7 +10,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace MinimalLambda.Host.Builder; +namespace MinimalLambda.Builder; /// Options for configuring the . public class LambdaApplicationOptions diff --git a/src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs b/src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs index c872c9a5..9b50512d 100644 --- a/src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs +++ b/src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.RuntimeSupport.Bootstrap; -using MinimalLambda.Host.Builder.Extensions; +using MinimalLambda.Builder.Extensions; -namespace MinimalLambda.Host.Options; +namespace MinimalLambda.Options; /// Options for configuring Lambda hosting behavior. public class LambdaHostOptions diff --git a/src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs b/src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs index b04ce2cf..4cd12cd4 100644 --- a/src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs +++ b/src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Options; +namespace MinimalLambda.Options; internal class LambdaHostedServiceOptions { diff --git a/src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs b/src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs index 0c8ca31a..92531c8e 100644 --- a/src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs +++ b/src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Host.Options; +namespace MinimalLambda.Options; /// /// Provides predetermined timeout durations for AWS Lambda shutdown based on extension diff --git a/src/MinimalLambda.Core/GlobalUsings.cs b/src/MinimalLambda.Core/GlobalUsings.cs index 7c5546fb..ea5e2789 100644 --- a/src/MinimalLambda.Core/GlobalUsings.cs +++ b/src/MinimalLambda.Core/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using MinimalLambda.Host.Builder; -global using MinimalLambda.Host.Core; -global using MinimalLambda.Host.Options; -global using MinimalLambda.Host.Runtime; +global using MinimalLambda.Builder; +global using MinimalLambda.Core; +global using MinimalLambda.Options; +global using MinimalLambda.Runtime; diff --git a/src/MinimalLambda.Core/Runtime/ILambdaBootstrapOrchestrator.cs b/src/MinimalLambda.Core/Runtime/ILambdaBootstrapOrchestrator.cs index ea6242f0..3dbdea09 100644 --- a/src/MinimalLambda.Core/Runtime/ILambdaBootstrapOrchestrator.cs +++ b/src/MinimalLambda.Core/Runtime/ILambdaBootstrapOrchestrator.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Runtime; +namespace MinimalLambda.Runtime; /// /// Responsible for orchestrating the AWS Lambda bootstrap. Abstracts away AWS SDK complexity diff --git a/src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs b/src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs index 28c5ac78..f75a6a6b 100644 --- a/src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs +++ b/src/MinimalLambda.Core/Runtime/ILambdaHandlerFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Host.Runtime; +namespace MinimalLambda.Runtime; /// /// Responsible for creating and composing the Lambda handler. Handles middleware pipeline diff --git a/src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs b/src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs index 26a73630..3ed17e18 100644 --- a/src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs +++ b/src/MinimalLambda.Core/Runtime/LambdaBootstrapAdapter.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Runtime; +namespace MinimalLambda.Runtime; /// /// Adapts AWS Lambda bootstrap configuration and execution. This class abstracts away AWS SDK diff --git a/src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs b/src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs index 8cdab2ba..5b2d8807 100644 --- a/src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs +++ b/src/MinimalLambda.Core/Runtime/LambdaHandlerComposer.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Runtime; +namespace MinimalLambda.Runtime; /// Builds and composes the Lambda invocation pipeline into a request handler. internal sealed class LambdaHandlerComposer : ILambdaHandlerFactory diff --git a/src/MinimalLambda.Core/Runtime/LambdaHostedService.cs b/src/MinimalLambda.Core/Runtime/LambdaHostedService.cs index a36d2358..7557a17a 100644 --- a/src/MinimalLambda.Core/Runtime/LambdaHostedService.cs +++ b/src/MinimalLambda.Core/Runtime/LambdaHostedService.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -namespace MinimalLambda.Host.Runtime; +namespace MinimalLambda.Runtime; /// /// Orchestrates the Lambda hosting environment lifecycle. Delegates specific concerns to diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index 5b86b6f8..6ec047af 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -9,7 +9,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; -using MinimalLambda.Host.Builder; +using MinimalLambda.Builder; namespace MinimalLambda.SourceGenerators.UnitTests; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs index 7d90fea2..57db1580 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs index 4b5cb4fb..18aeeece 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs index e7b3fca0..3fcad4e8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs index 39461d4f..6aa4705e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 9f907209..ee59e361 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs index cf9f6d18..655522f2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs index 7b5a13ea..9b91357e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs index 589fbb9a..f6244825 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs index f63a3123..d82af877 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs index a5885bd2..446bed65 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs index 7cdb309e..74355e8e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs index a0910ae8..36f13f83 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs index 621c1db4..14a24b6e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs index 101f6362..4912d9f0 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs index bb57222e..1f0f3d8b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] @@ -49,7 +49,7 @@ internal static ILambdaInvocationBuilder MapHandlerInterceptor0( Delegate handler ) { - var castHandler = (global::System.Func)handler; + var castHandler = (global::System.Func)handler; application.Handle(InvocationDelegate); diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs index 8476a3a8..8b8cc052 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs index 2e870b00..da7a4c6d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs index b48f769a..71168c9b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs index 98f6426d..c8e1b1bf 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs index 9f354c44..7ddca9f4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs index e701960b..eeaa6f9c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs index a2be15fe..4c7a1656 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs index 3005c812..f39294c2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs index 2efa0ee8..5e896791 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs index 54c90eb5..88caf113 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs index 406787e9..2fc94875 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs index cfacc464..13bdf7dc 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 9755ffde..aff626f2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs index 094d2bd2..6dc1f2ce 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index eba414e1..57966750 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs index 8c1ef138..87b24dbb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs index b5371037..68b77401 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs index 09370605..2cddf31b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs index 061d7940..574bf581 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs index 917e0219..a4f24696 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs index d784e1f1..81bc8a37 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs index f15a1585..e317f0bc 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs index a5059271..5c65bf8c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs index 81f4f40d..32832f62 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs index 3da476f5..c0bae9c9 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs index 2405c8b8..21611425 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs index e280e9ec..71e5d378 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs index 0f9ebb2f..22a5980c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs index 3e54c2e4..a79dc1be 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs index ac210cef..6c78a626 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs @@ -32,8 +32,8 @@ namespace MinimalLambda.Core.Generated using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using MinimalLambda.Host.Builder; - using MinimalLambda.Host.Core; + using MinimalLambda.Builder; + using MinimalLambda.Core; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs index 5784ad2a..2944bbba 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs index 6dd8edd3..150ab904 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs index d2d8a35e..3b6cc51b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs index 23affb97..85bdf9b7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs index 8048e257..55f67f4b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs index ff1aea25..39261c2d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs index 5237b816..707f5397 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs index c1cb334c..043332d2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs index d6939cf1..d2e70ffd 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs index 3e8f8280..805952b6 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs index 2735351a..4795c6b4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs index 39d3ad8c..44ad39b8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index 4f718bc7..393e2195 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index 858ecd07..a18a4fa4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs index d46a50e8..a7e38528 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnInitBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs index 3d3e32cf..a485fbdb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs index c281fb59..dbed71a7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs index 4462e464..da8d9f4e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs index cb1b9061..87e33851 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs index 42e7d12c..6cc23279 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs index ce89580e..5c2ff0e0 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index af4acddb..c40ff4eb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index 864b1d0d..12c605ab 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs index 410dfa39..d68f71df 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs @@ -34,7 +34,7 @@ namespace MinimalLambda.Core.Generated using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; - using MinimalLambda.Host.Builder; + using MinimalLambda.Builder; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] file static class GeneratedLambdaOnShutdownBuilderExtensions diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Types/HashCodeTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/HashCodeTests.cs index bd7c23fd..1ab10f3e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Types/HashCodeTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/HashCodeTests.cs @@ -1,6 +1,6 @@ using AwesomeAssertions; using JetBrains.Annotations; -using HashCode = MinimalLambda.Host.SourceGenerators.Types.HashCode; +using HashCode = MinimalLambda.SourceGenerators.Types.HashCode; namespace MinimalLambda.SourceGenerators.UnitTests.Types; diff --git a/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs b/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs index 98114132..1a0e6276 100644 --- a/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/Extensions/LambdaHttpClientServiceCollectionExtensionsTests.cs @@ -1,5 +1,5 @@ using Microsoft.Extensions.DependencyInjection; -using MinimalLambda.Host.Builder.Extensions; +using MinimalLambda.Builder.Extensions; namespace MinimalLambda.UnitTests.Builder.Extensions; diff --git a/tests/MinimalLambda.UnitTests/GlobalUsings.cs b/tests/MinimalLambda.UnitTests/GlobalUsings.cs index 436b3d2e..def360d6 100644 --- a/tests/MinimalLambda.UnitTests/GlobalUsings.cs +++ b/tests/MinimalLambda.UnitTests/GlobalUsings.cs @@ -3,9 +3,9 @@ global using AutoFixture.Xunit3; global using AwesomeAssertions; global using JetBrains.Annotations; -global using MinimalLambda.Host.Builder; -global using MinimalLambda.Host.Core; -global using MinimalLambda.Host.Options; -global using MinimalLambda.Host.Runtime; +global using MinimalLambda.Builder; +global using MinimalLambda.Core; +global using MinimalLambda.Options; +global using MinimalLambda.Runtime; global using NSubstitute; global using Xunit; From 31a4b5991f4621d309a3b3959e624a356823d523 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:21:29 -0500 Subject: [PATCH 04/25] refactor(examples): add missing namespace imports in Program.cs files - Included required namespaces in example and benchmark projects. - Ensured consistency with the updated project structure. --- benchmarks/MinimalLambda.Benchmarks/Program.cs | 1 + examples/MinimalLambda.Example.OpenTelemetry/Program.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmarks/MinimalLambda.Benchmarks/Program.cs b/benchmarks/MinimalLambda.Benchmarks/Program.cs index b1a834ae..784d7f94 100644 --- a/benchmarks/MinimalLambda.Benchmarks/Program.cs +++ b/benchmarks/MinimalLambda.Benchmarks/Program.cs @@ -1,5 +1,6 @@ using BenchmarkDotNet.Configs; using BenchmarkDotNet.Running; +using MinimalLambda.Benchmarks; var config = DefaultConfig.Instance; diff --git a/examples/MinimalLambda.Example.OpenTelemetry/Program.cs b/examples/MinimalLambda.Example.OpenTelemetry/Program.cs index 3dce6c63..bdad4cf1 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/Program.cs +++ b/examples/MinimalLambda.Example.OpenTelemetry/Program.cs @@ -1,5 +1,7 @@ -ο»Ώusing Microsoft.Extensions.Hosting; +ο»Ώusing Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; using MinimalLambda.Builder; +using MinimalLambda.Example.OpenTelemetry; var builder = LambdaApplication.CreateBuilder(); From 22a5784673680c41daaa59c57c2b438412745443 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:21:38 -0500 Subject: [PATCH 05/25] refactor(source-generators): remove redundant namespace qualification from TypeInfo usages - Simplified `Microsoft.CodeAnalysis.TypeInfo` to `TypeInfo` across HandlerInfoExtractor.cs. - Maintained consistency with project-wide namespace simplifications. --- .../SyntaxProviders/Extractors/HandlerInfoExtractor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs index afd9cc79..865d15bc 100644 --- a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs @@ -213,7 +213,7 @@ CastExpressionSyntax castExpression (castParam, originalParam) => originalParam with { - TypeInfo = Microsoft.CodeAnalysis.TypeInfo.Create(castParam.Type), + TypeInfo = TypeInfo.Create(castParam.Type), LocationInfo = LocationInfo.CreateFrom(castParam), } ) @@ -228,7 +228,7 @@ originalParam with && (invokeMethod.IsAsync || invokeMethod.ReturnType.IsTypeAwaitable()); // get response type TypeInfo - var responseTypeInfo = Microsoft.CodeAnalysis.TypeInfo.Create(invokeMethod.ReturnType); + var responseTypeInfo = TypeInfo.Create(invokeMethod.ReturnType); return new DelegateInfo( updatedParameters, @@ -270,7 +270,7 @@ CancellationToken cancellationToken && (methodSymbol.IsAsync || methodSymbol.ReturnType.IsTypeAwaitable()); // get response type TypeInfo - var responseTypeInfo = Microsoft.CodeAnalysis.TypeInfo.Create(methodSymbol.ReturnType); + var responseTypeInfo = TypeInfo.Create(methodSymbol.ReturnType); return new DelegateInfo(parameters, isAwaitable, methodSymbol.IsAsync, responseTypeInfo); } @@ -339,7 +339,7 @@ CancellationToken cancellationToken // get response type TypeInfo TypeInfo? responseTypeInfo = returnType is not null - ? Microsoft.CodeAnalysis.TypeInfo.Create(returnType, returnTypeSyntax) + ? TypeInfo.Create(returnType, returnTypeSyntax) : null; // determine if the lambda is async by checking kind @@ -367,7 +367,7 @@ CancellationToken cancellationToken { FullyQualifiedType = fullResponseType, } - : Microsoft.CodeAnalysis.TypeInfo.CreateFullyQualifiedType(fullResponseType); + : TypeInfo.CreateFullyQualifiedType(fullResponseType); // determine if the delegate is returning awaitable value var isAwaitable = From d8cbbf0470809192f2572fde41be62240d81313a Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:22:26 -0500 Subject: [PATCH 06/25] refactor(core): add missing namespace imports in middleware and extensions - Added `Microsoft.Extensions.DependencyInjection` imports in `RequestEnvelopeMiddleware.cs` and `OutputFormattingLambdaApplicationExtensions.cs`. - Included `MinimalLambda.Envelopes` import in `RequestEnvelopeMiddleware.cs`. --- .../Builder/Middleware/RequestEnvelopeMiddleware.cs | 2 ++ .../OnInit/OutputFormattingLambdaApplicationExtensions.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs b/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs index 73d4bf92..78faf377 100644 --- a/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs +++ b/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs @@ -1,4 +1,6 @@ +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; +using MinimalLambda.Envelopes; namespace MinimalLambda.Builder; diff --git a/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs b/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs index 84a34aca..5e6c6ad1 100644 --- a/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs +++ b/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs @@ -1,3 +1,4 @@ +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace MinimalLambda.Builder; From 41a5bcbe9c07c33e4a32f755deb711095dba2101 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:24:32 -0500 Subject: [PATCH 07/25] refactor(tests): use fully qualified namespace for Options.Create calls - Replaced unqualified `Options.Create` with `Microsoft.Extensions.Options.Options.Create` in tests. - Included missing namespace imports in relevant test files for consistency. --- .../GeneratorTestHelpers.cs | 1 + .../Types/EquatableArrayTests.cs | 1 + .../DefaultLambdaOnInitBuilderFactoryTests.cs | 3 +- .../Builder/LambdaOnInitBuilderTests.cs | 30 ++++++++++++++----- .../DefaultLambdaCancellationFactoryTests.cs | 18 +++++------ 5 files changed, 34 insertions(+), 19 deletions(-) diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index 6ec047af..64a95faf 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -10,6 +10,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; using MinimalLambda.Builder; +using MinimalLambda.Core; namespace MinimalLambda.SourceGenerators.UnitTests; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs index 1fd63328..f366a168 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Types/EquatableArrayTests.cs @@ -1,6 +1,7 @@ using System.Collections; using AwesomeAssertions; using JetBrains.Annotations; +using MinimalLambda.SourceGenerators.Types; namespace MinimalLambda.SourceGenerators.UnitTests.Types; diff --git a/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs index 14fb0a32..d58a0a29 100644 --- a/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/DefaultLambdaOnInitBuilderFactoryTests.cs @@ -6,7 +6,8 @@ namespace MinimalLambda.UnitTests.Builder; [TestSubject(typeof(DefaultLambdaOnInitBuilderFactory))] public class DefaultLambdaOnInitBuilderFactoryTests { - private readonly IOptions _options = Options.Create(new LambdaHostOptions()); + private readonly IOptions _options = + Microsoft.Extensions.Options.Options.Create(new LambdaHostOptions()); private readonly IServiceScopeFactory _scopeFactory = Substitute.For(); private readonly IServiceProvider _serviceProvider = Substitute.For(); diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs index 36ba9356..e2204422 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaOnInitBuilderTests.cs @@ -189,7 +189,9 @@ public async Task Build_WithSingleSuccessfulHandler_ReturnsTrue() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Options.Create(new LambdaHostOptions()); + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + new LambdaHostOptions() + ); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var handlerCalled = false; @@ -216,7 +218,9 @@ public async Task Build_WithHandlerReturnsFalse_ReturnsFalse() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Options.Create(new LambdaHostOptions()); + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + new LambdaHostOptions() + ); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); LambdaInitDelegate handler = (_, _) => Task.FromResult(false); @@ -237,7 +241,9 @@ public async Task Build_WithMultipleHandlers_AllExecuted() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Options.Create(new LambdaHostOptions()); + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + new LambdaHostOptions() + ); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var handler1Called = false; var handler2Called = false; @@ -282,7 +288,9 @@ public async Task Build_WithAnyHandlerReturningFalse_ReturnsFalse() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Options.Create(new LambdaHostOptions()); + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + new LambdaHostOptions() + ); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); LambdaInitDelegate handler1 = (_, _) => Task.FromResult(true); @@ -307,7 +315,9 @@ public async Task Build_WhenHandlerThrowsException_ThrowsAggregateException() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Options.Create(new LambdaHostOptions()); + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + new LambdaHostOptions() + ); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var testException = new InvalidOperationException("Test error"); @@ -329,7 +339,9 @@ public async Task Build_WithMultipleFailures_AggregatesAllErrors() // Arrange var serviceProvider = new ServiceCollection().BuildServiceProvider(); var scopeFactory = serviceProvider.GetRequiredService(); - var lambdaHostOptions = Options.Create(new LambdaHostOptions()); + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + new LambdaHostOptions() + ); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var exception1 = new InvalidOperationException("Error 1"); var exception2 = new ArgumentException("Error 2"); @@ -354,7 +366,7 @@ public async Task Build_WithMultipleFailures_AggregatesAllErrors() public async Task Build_RespectsInitTimeout(IServiceScopeFactory scopeFactory) { // Arrange - var lambdaHostOptions = Options.Create( + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InitTimeout = TimeSpan.FromMilliseconds(50) } ); var serviceProvider = new ServiceCollection().BuildServiceProvider(); @@ -384,7 +396,9 @@ IServiceScopeFactory scopeFactory ) { // Arrange - var lambdaHostOptions = Options.Create(new LambdaHostOptions()); + var lambdaHostOptions = Microsoft.Extensions.Options.Options.Create( + new LambdaHostOptions() + ); var builder = new LambdaOnInitBuilder(serviceProvider, scopeFactory, lambdaHostOptions); var scopeUsed = false; diff --git a/tests/MinimalLambda.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs b/tests/MinimalLambda.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs index df2120df..6167dbc2 100644 --- a/tests/MinimalLambda.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Cancellation/DefaultLambdaCancellationFactoryTests.cs @@ -1,5 +1,3 @@ -using Microsoft.Extensions.Options; - namespace MinimalLambda.UnitTests; [TestSubject(typeof(DefaultLambdaCancellationFactory))] @@ -9,7 +7,7 @@ public class DefaultLambdaCancellationFactoryTest public void Constructor_WithNegativeBufferDuration_ThrowsArgumentOutOfRangeException() { // Arrange - var options = Options.Create( + var options = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(-1) } ); @@ -25,10 +23,10 @@ public void Constructor_WithNegativeBufferDuration_ThrowsArgumentOutOfRangeExcep public void Constructor_WithZeroOrPositiveBufferDuration_DoesNotThrow() { // Arrange - var optionsWithZero = Options.Create( + var optionsWithZero = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.Zero } ); - var optionsWithPositive = Options.Create( + var optionsWithPositive = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(10) } ); @@ -50,7 +48,7 @@ public void Constructor_WithZeroOrPositiveBufferDuration_DoesNotThrow() public void NewCancellationTokenSource_WithNullContext_ThrowsArgumentNullException() { // Arrange - var options = Options.Create( + var options = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(5) } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -67,7 +65,7 @@ public void NewCancellationTokenSource_WithNullContext_ThrowsArgumentNullExcepti public void NewCancellationTokenSource_WhenContextRemainingTimeZeroOrLess_ThrowsInvalidOperationException() { // Arrange - var options = Options.Create( + var options = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = TimeSpan.FromSeconds(5) } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -91,7 +89,7 @@ public void NewCancellationTokenSource_WhenBufferExceedsRemainingTime_ThrowsInva { // Arrange var bufferDuration = TimeSpan.FromSeconds(10); - var options = Options.Create( + var options = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = bufferDuration } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -111,7 +109,7 @@ public void NewCancellationTokenSource_WithValidContext_ReturnsConfiguredCancell { // Arrange var bufferDuration = TimeSpan.FromSeconds(5); - var options = Options.Create( + var options = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = bufferDuration } ); var factory = new DefaultLambdaCancellationFactory(options); @@ -137,7 +135,7 @@ public void NewCancellationTokenSource_WithRemainingTimeEqualToBuffer_ThrowsInva { // Arrange var bufferDuration = TimeSpan.FromSeconds(10); - var options = Options.Create( + var options = Microsoft.Extensions.Options.Options.Create( new LambdaHostOptions { InvocationCancellationBuffer = bufferDuration } ); var factory = new DefaultLambdaCancellationFactory(options); From 77a93e8400d33c5cfdfdd26764216209cbde268d Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:32:52 -0500 Subject: [PATCH 08/25] refactor(core): rename and restructure build target files for consistency - Renamed `AwsLambda.Host.targets` to `MinimalLambda.Core.targets` for clarity. - Updated project file references to reflect the new build target file name. - Adjusted `InitialTargets` and `Target` name to align with the new naming convention. - Removed obsolete folder and restructured build file inclusion. - Ensured consistent packaging metadata in project file. --- src/MinimalLambda.Core/MinimalLambda.Core.csproj | 12 +++++++----- ...ambda.Host.targets => MinimalLambda.Core.targets} | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) rename src/MinimalLambda.Core/build/{AwsLambda.Host.targets => MinimalLambda.Core.targets} (70%) diff --git a/src/MinimalLambda.Core/MinimalLambda.Core.csproj b/src/MinimalLambda.Core/MinimalLambda.Core.csproj index 4cece1e6..04f3234a 100644 --- a/src/MinimalLambda.Core/MinimalLambda.Core.csproj +++ b/src/MinimalLambda.Core/MinimalLambda.Core.csproj @@ -22,9 +22,14 @@ - + - - - - + + $(InterceptorsPreviewNamespaces);MinimalLambda.Core.Generated From 9b75c63171d0e16f7451d227bb8e09daa23eb521 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 10:34:49 -0500 Subject: [PATCH 09/25] refactor(solution): rename AwsLambda.Host.sln to MinimalLambda.sln - Updated solution file name to align with the MinimalLambda branding. --- AwsLambda.Host.sln => MinimalLambda.sln | 0 AwsLambda.Host.sln.DotSettings => MinimalLambda.sln.DotSettings | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename AwsLambda.Host.sln => MinimalLambda.sln (100%) rename AwsLambda.Host.sln.DotSettings => MinimalLambda.sln.DotSettings (100%) diff --git a/AwsLambda.Host.sln b/MinimalLambda.sln similarity index 100% rename from AwsLambda.Host.sln rename to MinimalLambda.sln diff --git a/AwsLambda.Host.sln.DotSettings b/MinimalLambda.sln.DotSettings similarity index 100% rename from AwsLambda.Host.sln.DotSettings rename to MinimalLambda.sln.DotSettings From 7712c40aa017cbfb76e61213285605affcdaaa1f Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 11:23:10 -0500 Subject: [PATCH 10/25] refactor: updated repo links to minimal-lambda --- .github/workflows/main-build.yaml | 2 +- .github/workflows/pr-build.yaml | 2 +- .grenrc.js | 2 +- CHANGELOG.md | 20 +++++++++---------- CLAUDE.md | 2 +- CONTRIBUTING.md | 8 ++++---- Directory.Build.props | 4 ++-- README.md | 10 +++++----- docs/features/envelopes.md | 20 +++++++++---------- docs/features/open_telemetry.md | 2 +- docs/getting-started/index.md | 4 ++-- docs/getting-started/installation.md | 4 ++-- docs/guides/dependency-injection.md | 2 +- docs/guides/hosting.md | 2 +- docs/guides/index.md | 4 ++-- docs/guides/middleware.md | 2 +- docs/index.md | 20 +++++++++---------- .../README.md | 2 +- mkdocs.yml | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- pyproject.toml | 4 ++-- .../MinimalLambda.Envelopes.Alb/README.md | 2 +- .../README.md | 2 +- .../README.md | 2 +- .../MinimalLambda.Envelopes.Kafka/README.md | 2 +- .../MinimalLambda.Envelopes.Kinesis/README.md | 2 +- .../README.md | 2 +- .../MinimalLambda.Envelopes.Sns/README.md | 2 +- .../MinimalLambda.Envelopes.Sqs/README.md | 2 +- src/Envelopes/README.md | 2 +- src/MinimalLambda.Abstractions/README.md | 6 +++--- src/MinimalLambda.Core/README.md | 6 +++--- src/MinimalLambda.OpenTelemetry/README.md | 6 +++--- uv.lock | 2 +- 35 files changed, 83 insertions(+), 83 deletions(-) diff --git a/.github/workflows/main-build.yaml b/.github/workflows/main-build.yaml index c34afd4d..d3b1fe17 100644 --- a/.github/workflows/main-build.yaml +++ b/.github/workflows/main-build.yaml @@ -73,7 +73,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | ~/.sonar/scanner/dotnet-sonarscanner begin \ - /k:"j-d-ha_aws-lambda-host" \ + /k:"j-d-ha_minimal-lambda" \ /o:"j-d-ha" \ /d:sonar.exclusions="**/bin/**,**/obj/**,tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/**,**/coverage/**,**/.nuget/**,**/packages/**" \ /d:sonar.coverage.exclusions="**/*" \ diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 097f9709..7188ff70 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -97,7 +97,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | ~/.sonar/scanner/dotnet-sonarscanner begin \ - /k:"j-d-ha_aws-lambda-host" \ + /k:"j-d-ha_minimal-lambda" \ /o:"j-d-ha" \ /d:sonar.exclusions="**/bin/**,**/obj/**,tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/**,**/coverage/**,**/.nuget/**,**/packages/**" \ /d:sonar.coverage.exclusions="**/*" \ diff --git a/.grenrc.js b/.grenrc.js index 6f91a4a2..c65cc59f 100644 --- a/.grenrc.js +++ b/.grenrc.js @@ -27,7 +27,7 @@ These packages have been automatically published to [NuGet.org](https://www.nuge --- -**Full Changelog:** [\`${variables.previousTag}...${variables.currentTag}\`](https://github.com/j-d-ha/aws-lambda-host/compare/${variables.previousTag}...${variables.currentTag}) +**Full Changelog:** [\`${variables.previousTag}...${variables.currentTag}\`](https://github.com/j-d-ha/minimal-lambda/compare/${variables.previousTag}...${variables.currentTag}) `; }, group: (variables) => { diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ffe12b9..d27ec1fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,16 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [Unreleased](https://github.com/j-d-ha/aws-lambda-host/compare/v1.3.1...HEAD) +## [Unreleased](https://github.com/j-d-ha/minimal-lambda/compare/v1.3.1...HEAD) -## [v1.3.1](https://github.com/j-d-ha/aws-lambda-host/compare/v1.3.0...v1.3.1) - 2025-12-10 +## [v1.3.1](https://github.com/j-d-ha/minimal-lambda/compare/v1.3.0...v1.3.1) - 2025-12-10 ### πŸ› Bug Fixes * fix(core): add missing TenantId and TraceId properties to DefaultLambdaHostContext (#224) @j-d-ha * fix(ci): remove sign-commits from changelog workflow (#223) @j-d-ha -## [v1.3.0](https://github.com/j-d-ha/aws-lambda-host/compare/v1.2.1...v1.3.0) - 2025-12-10 +## [v1.3.0](https://github.com/j-d-ha/minimal-lambda/compare/v1.2.1...v1.3.0) - 2025-12-10 ## πŸš€ Features @@ -36,7 +36,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline * ci(github): optimize workflow triggers for draft PRs (#215) @j-d-ha -## [v1.2.1](https://github.com/j-d-ha/aws-lambda-host/compare/v1.2.0...v1.2.1) - 2025-11-30 +## [v1.2.1](https://github.com/j-d-ha/minimal-lambda/compare/v1.2.0...v1.2.1) - 2025-11-30 ## πŸ› Bug Fixes @@ -53,7 +53,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline * ci: skip build workflows for docs-only changes (#204) @j-d-ha * chore(github): enhance changelog update workflow (#201) @j-d-ha -## [v1.2.0](https://github.com/j-d-ha/aws-lambda-host/compare/v1.1.0...v1.2.0) - 2025-11-29 +## [v1.2.0](https://github.com/j-d-ha/minimal-lambda/compare/v1.1.0...v1.2.0) - 2025-11-29 ## πŸš€ Features @@ -83,7 +83,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline * chore: cleanup repository formatting and documentation (#197) @j-d-ha * chore(ci): pinned release-drafter action to 6.0.0 (#182) @j-d-ha -## [v1.1.0](https://github.com/j-d-ha/aws-lambda-host/compare/v1.0.0...v1.1.0) - 2025-11-27 +## [v1.1.0](https://github.com/j-d-ha/minimal-lambda/compare/v1.0.0...v1.1.0) - 2025-11-27 ## πŸš€ Features @@ -104,7 +104,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline * chore(github): update changelog for v1.0.0 release (#170) @j-d-ha -## [v1.0.0](https://github.com/j-d-ha/aws-lambda-host/compare/v0.1.3...v1.0.0) - 2025-11-24 +## [v1.0.0](https://github.com/j-d-ha/minimal-lambda/compare/v0.1.3...v1.0.0) - 2025-11-24 ## πŸš€ Features @@ -155,19 +155,19 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline * refactor(host): reorganize folder structure with hierarchical layers (#146) @j-d-ha * feat(envelopes): add modular envelope system for Lambda event handling (#131) @j-d-ha -## [v0.1.3](https://github.com/j-d-ha/aws-lambda-host/compare/v0.1.2...v0.1.3) - 2025-11-10 +## [v0.1.3](https://github.com/j-d-ha/minimal-lambda/compare/v0.1.2...v0.1.3) - 2025-11-10 ### πŸ› Bug Fixes * fix: prevent example projects from being packed during release (#115) @j-d-ha -## [v0.1.2](https://github.com/j-d-ha/aws-lambda-host/compare/v0.1.1...v0.1.2) - 2025-11-10 +## [v0.1.2](https://github.com/j-d-ha/minimal-lambda/compare/v0.1.1...v0.1.2) - 2025-11-10 ### πŸ”§ Maintenance * ci(github): get NuGet package version from release tag (#113) @j-d-ha -## [v0.1.1](https://github.com/j-d-ha/aws-lambda-host/compare/v0.1.1) - 2025-11-09 +## [v0.1.1](https://github.com/j-d-ha/minimal-lambda/compare/v0.1.1) - 2025-11-09 ### πŸ”§ Maintenance diff --git a/CLAUDE.md b/CLAUDE.md index 55666030..ad5c946e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,7 +2,7 @@ ## GENERAL -- Repo link: https://github.com/j-d-ha/aws-lambda-host +- Repo link: https://github.com/j-d-ha/minimal-lambda - GitHub Project Name: Lambda.Host Development - All code in this project is designed to run on AWS Lambda or generate code that will then be run on AWS Lambda. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6137992e..098a96cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,7 @@ Thank you for your interest in contributing to the AWS Lambda Host project! This ## Table of Contents -* [Contributing to AWS Lambda Host](#contributing-to-aws-lambda-host) +* [Contributing to AWS Lambda Host](#contributing-to-minimal-lambda) * [Table of Contents](#table-of-contents) * [Code of Conduct](#code-of-conduct) * [Getting Started](#getting-started) @@ -33,12 +33,12 @@ We are committed to providing a welcoming and inclusive environment for all cont 1. **Fork the repository** on GitHub 2. **Clone your fork** locally: ```bash - git clone https://github.com/YOUR_USERNAME/aws-lambda-host.git - cd aws-lambda-host + git clone https://github.com/YOUR_USERNAME/minimal-lambda.git + cd minimal-lambda ``` 3. **Add the upstream remote**: ```bash - git remote add upstream https://github.com/j-d-ha/aws-lambda-host.git + git remote add upstream https://github.com/j-d-ha/minimal-lambda.git ``` 4. **Create a feature branch** (see [Branching Strategy](#branching-strategy)) diff --git a/Directory.Build.props b/Directory.Build.props index cd8ac324..7e92472f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,9 +6,9 @@ Jonas Ha csharp;library;utility;aws;lambda - https://github.com/j-d-ha/aws-lambda-host + https://github.com/j-d-ha/minimal-lambda Copyright Β© 2025 Jonas Ha - https://github.com/j-d-ha/aws-lambda-host + https://github.com/j-d-ha/minimal-lambda false true diff --git a/README.md b/README.md index c27d5b95..50c8fbac 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # MinimalLambda -[![Main Build](https://github.com/j-d-ha/aws-lambda-host/actions/workflows/main-build.yaml/badge.svg)](https://github.com/j-d-ha/aws-lambda-host/actions/workflows/main-build.yaml) -[![codecov](https://codecov.io/gh/j-d-ha/aws-lambda-host/graph/badge.svg?token=BWORPTQ0UK)](https://codecov.io/gh/j-d-ha/aws-lambda-host) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=j-d-ha_aws-lambda-host&metric=alert_status&token=9fb519975d91379dcfbc6c13a4bd4207131af6e3)](https://sonarcloud.io/summary/new_code?id=j-d-ha_aws-lambda-host) +[![Main Build](https://github.com/j-d-ha/minimal-lambda/actions/workflows/main-build.yaml/badge.svg)](https://github.com/j-d-ha/minimal-lambda/actions/workflows/main-build.yaml) +[![codecov](https://codecov.io/gh/j-d-ha/minimal-lambda/graph/badge.svg?token=BWORPTQ0UK)](https://codecov.io/gh/j-d-ha/minimal-lambda) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=j-d-ha_minimal-lambda&metric=alert_status&token=9fb519975d91379dcfbc6c13a4bd4207131af6e3)](https://sonarcloud.io/summary/new_code?id=j-d-ha_minimal-lambda) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) A modern .NET framework for building AWS Lambda functions using familiar .NET patterns. -> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/aws-lambda-host/)** +> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Overview -**aws-lambda-host** is a .NET hosting framework that simplifies AWS Lambda development by following +**minimal-lambda** is a .NET hosting framework that simplifies AWS Lambda development by following idiomatic .NET patterns and best practices. Instead of writing boilerplate code to handle Lambda events, context, and serialization, you get a clean, declarative API for defining Lambda handlers with dependency injection (similar to minimal APIs), middleware support, and modern async/await diff --git a/docs/features/envelopes.md b/docs/features/envelopes.md index 065e3735..4ecbed5b 100644 --- a/docs/features/envelopes.md +++ b/docs/features/envelopes.md @@ -5,7 +5,7 @@ strongly typed payload accessors. Instead of deserializing JSON manually, you wo `BodyContent`, `MessageContent`, or similar properties that the framework populates before your handler executes. -Behind the scenes, aws-lambda-host injects the `UseExtractAndPackEnvelope` middleware at the end of +Behind the scenes, minimal-lambda injects the `UseExtractAndPackEnvelope` middleware at the end of every pipeline. That middleware automatically calls `IRequestEnvelope.ExtractPayload` before your handler runs and `IResponseEnvelope.PackPayload` after it finishes, guaranteeing consistent serialization for both built-in envelopes and your own custom envelope types. @@ -26,14 +26,14 @@ Install only the envelopes you need; each one lives in its own NuGet package. | Event Source | Package | NuGet | |---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| SQS | [MinimalLambda.Envelopes.Sqs](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Sqs) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | -| SNS | [MinimalLambda.Envelopes.Sns](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Sns) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | -| API Gateway / HTTP API | [MinimalLambda.Envelopes.ApiGateway](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.ApiGateway) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | -| Kinesis Data Streams | [MinimalLambda.Envelopes.Kinesis](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Kinesis) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | -| Kinesis Data Firehose | [MinimalLambda.Envelopes.KinesisFirehose](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | -| Kafka (MSK / self-managed) | [MinimalLambda.Envelopes.Kafka](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Kafka) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | -| CloudWatch Logs | [MinimalLambda.Envelopes.CloudWatchLogs](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | -| Application Load Balancer (ALB) | [MinimalLambda.Envelopes.Alb](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/Envelopes/MinimalLambda.Envelopes.Alb) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | +| SQS | [MinimalLambda.Envelopes.Sqs](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.Sqs) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sqs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sqs) | +| SNS | [MinimalLambda.Envelopes.Sns](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.Sns) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Sns.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Sns) | +| API Gateway / HTTP API | [MinimalLambda.Envelopes.ApiGateway](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.ApiGateway) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.ApiGateway.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.ApiGateway) | +| Kinesis Data Streams | [MinimalLambda.Envelopes.Kinesis](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.Kinesis) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kinesis.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kinesis) | +| Kinesis Data Firehose | [MinimalLambda.Envelopes.KinesisFirehose](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.KinesisFirehose.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.KinesisFirehose) | +| Kafka (MSK / self-managed) | [MinimalLambda.Envelopes.Kafka](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.Kafka) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Kafka.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Kafka) | +| CloudWatch Logs | [MinimalLambda.Envelopes.CloudWatchLogs](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.CloudWatchLogs.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.CloudWatchLogs) | +| Application Load Balancer (ALB) | [MinimalLambda.Envelopes.Alb](https://github.com/j-d-ha/minimal-lambda/tree/main/src/Envelopes/MinimalLambda.Envelopes.Alb) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Envelopes.Alb.svg)](https://www.nuget.org/packages/MinimalLambda.Envelopes.Alb) | Each package ships with README examples in the repository if you need event-specific guidance. @@ -102,7 +102,7 @@ envelope using `System.Xml`. See the SQS README in the repo for a complete XML s ### Advanced Configuration -- **`LambdaDefaultJsonOptions`** – aws-lambda-host maintains a second `JsonSerializerOptions` +- **`LambdaDefaultJsonOptions`** – minimal-lambda maintains a second `JsonSerializerOptions` instance for Lambda-specific envelopes (e.g., SNSβ†’SQS fan-out). Most apps shouldn’t touch it; the host copies your `JsonOptions.TypeInfoResolver` automatically. Only override it when you need different converters for those hybrid envelopes. diff --git a/docs/features/open_telemetry.md b/docs/features/open_telemetry.md index 18df1cc4..540d93f0 100644 --- a/docs/features/open_telemetry.md +++ b/docs/features/open_telemetry.md @@ -191,7 +191,7 @@ All three methods also accept an optional `timeoutMilliseconds` parameter. This !!! note This code is not specific to `MinimalLambda.OpenTelemetry` and follows the guidlines provided by Microsoft's [.NET distributed tracing documetation](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing). -A full working example of an instrumented Lambda application can be found [on GitHub](https://github.com/j-d-ha/aws-lambda-host/tree/main/examples/MinimalLambda.Example.OpenTelemetry). +A full working example of an instrumented Lambda application can be found [on GitHub](https://github.com/j-d-ha/minimal-lambda/tree/main/examples/MinimalLambda.Example.OpenTelemetry). ### Custom Instrumentation Class diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md index 8d3f14f7..8bc70f7b 100644 --- a/docs/getting-started/index.md +++ b/docs/getting-started/index.md @@ -49,7 +49,7 @@ Prefer to explore? Head directly to **[Guides](../guides/index.md)** or **[Examp If you run into issues or have questions: -- **[GitHub Issues](https://github.com/j-d-ha/aws-lambda-host/issues)** – Report bugs or request features -- **[GitHub Discussions](https://github.com/j-d-ha/aws-lambda-host/discussions)** – Ask questions and share ideas +- **[GitHub Issues](https://github.com/j-d-ha/minimal-lambda/issues)** – Report bugs or request features +- **[GitHub Discussions](https://github.com/j-d-ha/minimal-lambda/discussions)** – Ask questions and share ideas Continue with **[Installation](installation.md)** to configure your project. diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 5e393a6d..9e5c4465 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -231,8 +231,8 @@ Envelope packages provide type-safe, strongly-typed event handling for specific If you encounter issues not covered here: -- Search or ask in [GitHub Discussions](https://github.com/j-d-ha/aws-lambda-host/discussions) -- Report bugs in [GitHub Issues](https://github.com/j-d-ha/aws-lambda-host/issues) +- Search or ask in [GitHub Discussions](https://github.com/j-d-ha/minimal-lambda/discussions) +- Report bugs in [GitHub Issues](https://github.com/j-d-ha/minimal-lambda/issues) ## Next Steps diff --git a/docs/guides/dependency-injection.md b/docs/guides/dependency-injection.md index f2eaea79..6723fdc8 100644 --- a/docs/guides/dependency-injection.md +++ b/docs/guides/dependency-injection.md @@ -1,6 +1,6 @@ # Dependency Injection -`aws-lambda-host` uses the same dependency injection container as ASP.NET Core +`minimal-lambda` uses the same dependency injection container as ASP.NET Core (`Microsoft.Extensions.DependencyInjection`). If you're new to DI in .NET, start with the [official documentation](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection) and then come back for Lambda-specific guidance. This guide focuses on what changes (and what stays the diff --git a/docs/guides/hosting.md b/docs/guides/hosting.md index 78f775ec..ed45f216 100644 --- a/docs/guides/hosting.md +++ b/docs/guides/hosting.md @@ -9,7 +9,7 @@ Calling `LambdaApplication.CreateBuilder()` assembles a standard .NET host with - **Configuration sources** – Adds `appsettings.json`, `appsettings.{Environment}.json`, user secrets (development), `AWS_` and `DOTNET_` prefixed environment variables, and ambient environment variables. The resulting `ConfigurationManager` is exposed via `builder.Configuration`. - **Environment & content root** – Sets `IHostEnvironment.ApplicationName` from `AWS_LAMBDA_FUNCTION_NAME` (when available) and resolves the content root by honoring `DOTNET_CONTENTROOT`, `AWS_LAMBDA_TASK_ROOT`, or falling back to `Directory.GetCurrentDirectory()`. - **Logging** – Registers console logging with activity tracking enabled. In Development, scope validation is turned on so singleton/scoped misuse throws during build. -- **Dependency injection** – Every call to `builder.Services` hits the standard `IServiceCollection`. On `builder.Build()`, aws-lambda-host registers: +- **Dependency injection** – Every call to `builder.Services` hits the standard `IServiceCollection`. On `builder.Build()`, minimal-lambda registers: - `ILambdaInvocationBuilderFactory`, `ILambdaOnInitBuilderFactory`, and `ILambdaOnShutdownBuilderFactory` so lambda-specific pipelines can be composed later. - `LambdaHostedService`, `ILambdaHandlerFactory`, feature collections, and `ILambdaBootstrapOrchestrator`. - Default implementations of `ILambdaSerializer` (System.Text.Json) and `ILambdaCancellationFactory` unless you already registered your own via `TryAddLambdaHostDefaultServices()`. diff --git a/docs/guides/index.md b/docs/guides/index.md index 63475fea..2ab18fc1 100644 --- a/docs/guides/index.md +++ b/docs/guides/index.md @@ -126,8 +126,8 @@ After mastering the guides, explore [Advanced Topics](../advanced/index.md) for If you encounter issues not covered in these guides: -- Search or ask in [GitHub Discussions](https://github.com/j-d-ha/aws-lambda-host/discussions) -- Report bugs in [GitHub Issues](https://github.com/j-d-ha/aws-lambda-host/issues) +- Search or ask in [GitHub Discussions](https://github.com/j-d-ha/minimal-lambda/discussions) +- Report bugs in [GitHub Issues](https://github.com/j-d-ha/minimal-lambda/issues) --- diff --git a/docs/guides/middleware.md b/docs/guides/middleware.md index 59ae9ac4..fbccf993 100644 --- a/docs/guides/middleware.md +++ b/docs/guides/middleware.md @@ -1,6 +1,6 @@ # Middleware -`aws-lambda-host` uses the same middleware model as ASP.NET Core: each component gets a context object, +`minimal-lambda` uses the same middleware model as ASP.NET Core: each component gets a context object, runs code before/after the next component, and can short-circuit the pipeline. If you're new to the pattern, skim the [ASP.NET Core middleware overview](https://learn.microsoft.com/aspnet/core/fundamentals/middleware/) first. This guide focuses on Lambda-specific behavior: invocation scopes, feature access, and diff --git a/docs/index.md b/docs/index.md index c0db5250..d78c224c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,10 +4,10 @@ title: "" # Build AWS Lambda Functions with .NET Hosting Patterns -[![Main Build](https://github.com/j-d-ha/aws-lambda-host/actions/workflows/main-build.yaml/badge.svg)](https://github.com/j-d-ha/aws-lambda-host/actions/workflows/main-build.yaml) -[![codecov](https://codecov.io/gh/j-d-ha/aws-lambda-host/graph/badge.svg?token=BWORPTQ0UK)](https://codecov.io/gh/j-d-ha/aws-lambda-host) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=j-d-ha_aws-lambda-host&metric=alert_status&token=9fb519975d91379dcfbc6c13a4bd4207131af6e3)](https://sonarcloud.io/summary/new_code?id=j-d-ha_aws-lambda-host) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/j-d-ha/aws-lambda-host/blob/main/LICENSE) +[![Main Build](https://github.com/j-d-ha/minimal-lambda/actions/workflows/main-build.yaml/badge.svg)](https://github.com/j-d-ha/minimal-lambda/actions/workflows/main-build.yaml) +[![codecov](https://codecov.io/gh/j-d-ha/minimal-lambda/graph/badge.svg?token=BWORPTQ0UK)](https://codecov.io/gh/j-d-ha/minimal-lambda) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=j-d-ha_minimal-lambda&metric=alert_status&token=9fb519975d91379dcfbc6c13a4bd4207131af6e3)](https://sonarcloud.io/summary/new_code?id=j-d-ha_minimal-lambda) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/j-d-ha/minimal-lambda/blob/main/LICENSE) MinimalLambda is a lightweight hosting framework for .NET developers who want the comfort of ASP.NET Core’s middleware, dependency injection, and lifecycle hooks inside AWS Lambda. Instead of wiring up @@ -195,8 +195,8 @@ for building AWS Lambda functions. | Package | Description | NuGet | Downloads | |------------------------------------------------------------------|-----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| -| [**MinimalLambda**](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/MinimalLambda) | Core hosting framework with middleware and DI | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | -| [**MinimalLambda.Abstractions**](https://github.com/j-d-ha/aws-lambda-host/tree/main/src/MinimalLambda.Abstractions) | Core interfaces and contracts | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | +| [**MinimalLambda**](https://github.com/j-d-ha/minimal-lambda/tree/main/src/MinimalLambda) | Core hosting framework with middleware and DI | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| [**MinimalLambda.Abstractions**](https://github.com/j-d-ha/minimal-lambda/tree/main/src/MinimalLambda.Abstractions) | Core interfaces and contracts | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | | [**MinimalLambda.OpenTelemetry**](features/open_telemetry.md) | Distributed tracing and observability | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | ### Envelope Packages @@ -239,9 +239,9 @@ soon) for end-to-end Lambda samples that wire up middleware, envelopes, and DI. ### Get Involved -- **[GitHub Repository](https://github.com/j-d-ha/aws-lambda-host)** – Source code, issues, and discussions. +- **[GitHub Repository](https://github.com/j-d-ha/minimal-lambda)** – Source code, issues, and discussions. - **[Changelog](changelog.md)** – Version history and release notes. -- **[License](https://github.com/j-d-ha/aws-lambda-host/blob/main/LICENSE)** – MIT License. +- **[License](https://github.com/j-d-ha/minimal-lambda/blob/main/LICENSE)** – MIT License. ### Documentation @@ -252,8 +252,8 @@ soon) for end-to-end Lambda samples that wire up middleware, envelopes, and DI. ### Support -- Ask or search in [GitHub Discussions](https://github.com/j-d-ha/aws-lambda-host/discussions). -- File bugs or feature requests via [GitHub Issues](https://github.com/j-d-ha/aws-lambda-host/issues). +- Ask or search in [GitHub Discussions](https://github.com/j-d-ha/minimal-lambda/discussions). +- File bugs or feature requests via [GitHub Issues](https://github.com/j-d-ha/minimal-lambda/issues). --- diff --git a/examples/MinimalLambda.Example.OpenTelemetry/README.md b/examples/MinimalLambda.Example.OpenTelemetry/README.md index c765fdc7..948a389e 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/README.md +++ b/examples/MinimalLambda.Example.OpenTelemetry/README.md @@ -1,6 +1,6 @@ # MinimalLambda.Example.OpenTelemetry -> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/aws-lambda-host/)** +> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Getting Started diff --git a/mkdocs.yml b/mkdocs.yml index b260da07..54a81bb6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,11 +4,11 @@ site_name: MinimalLambda site_description: A modern .NET framework for building AWS Lambda functions using familiar .NET patterns. -site_url: https://j-d-ha.github.io/aws-lambda-host/ +site_url: https://j-d-ha.github.io/minimal-lambda/ site_author: Jonas Ha -repo_name: j-d-ha/aws-lambda-host -repo_url: https://github.com/j-d-ha/aws-lambda-host +repo_name: j-d-ha/minimal-lambda +repo_url: https://github.com/j-d-ha/minimal-lambda edit_uri: edit/main/docs/ theme: diff --git a/package-lock.json b/package-lock.json index b6baa331..b934fca6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "aws-lambda-host", + "name": "minimal-lambda", "version": "0.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "aws-lambda-host", + "name": "minimal-lambda", "version": "0.0.7", "devDependencies": { "@commitlint/cli": "^20.1.0", diff --git a/package.json b/package.json index ab996ac5..84311d74 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "aws-lambda-host", + "name": "minimal-lambda", "version": "0.0.7", "description": "AWS Lambda Host - .NET library for running code on AWS Lambda", "private": true, diff --git a/pyproject.toml b/pyproject.toml index cc09b232..38ba4fa7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] -name = "aws-lambda-host-docs" +name = "minimal-lambda-docs" version = "0.1.0" -description = "mkdocs for aws-lambda-host" +description = "mkdocs for minimal-lambda" requires-python = ">=3.13" dependencies = [ "mkdocs>=1.6.1", diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md b/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md index 08135240..bceb4685 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/README.md @@ -126,7 +126,7 @@ builder.Services.ConfigureEnvelopeOptions(options => ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md index 17493a13..005090a0 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/README.md @@ -130,7 +130,7 @@ builder.Services.ConfigureEnvelopeOptions(options => ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md index b253d5a2..2e007f85 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/README.md @@ -119,7 +119,7 @@ builder.Services.ConfigureEnvelopeOptions(options => ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md b/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md index 31a275cc..b4bded24 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/README.md @@ -123,7 +123,7 @@ builder.Services.ConfigureEnvelopeOptions(options => ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md index b7e76037..a33b19be 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/README.md @@ -114,7 +114,7 @@ builder.Services.ConfigureEnvelopeOptions(options => ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md index c73eb997..1440b7a8 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/README.md @@ -149,7 +149,7 @@ builder.Services.ConfigureEnvelopeOptions(options => ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md b/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md index 0129ab94..bc9907a0 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/README.md @@ -101,7 +101,7 @@ builder.Services.ConfigureEnvelopeOptions(options => ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md b/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md index a4fc6d2d..ecc47dfb 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/README.md @@ -145,7 +145,7 @@ Lambda function processes messages from that queue. ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/Envelopes/README.md b/src/Envelopes/README.md index 501d94a9..17ff5c74 100644 --- a/src/Envelopes/README.md +++ b/src/Envelopes/README.md @@ -3,7 +3,7 @@ Envelopes extend AWS Lambda event types with strongly-typed payload handling, making it easier to work with JSON (or other formats) in Lambda function handlers. -> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/aws-lambda-host/)** +> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Overview diff --git a/src/MinimalLambda.Abstractions/README.md b/src/MinimalLambda.Abstractions/README.md index f38631dc..808ad6fc 100644 --- a/src/MinimalLambda.Abstractions/README.md +++ b/src/MinimalLambda.Abstractions/README.md @@ -1,8 +1,8 @@ # MinimalLambda.Abstractions -Core interfaces and abstractions for the aws-lambda-host framework. +Core interfaces and abstractions for the minimal-lambda framework. -> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/aws-lambda-host/)** +> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Overview @@ -205,7 +205,7 @@ For implementation details and examples, see [MinimalLambda](../MinimalLambda/RE ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/MinimalLambda.Core/README.md b/src/MinimalLambda.Core/README.md index ea41c167..28215bd1 100644 --- a/src/MinimalLambda.Core/README.md +++ b/src/MinimalLambda.Core/README.md @@ -3,7 +3,7 @@ Core framework for building AWS Lambda functions with dependency injection, middleware, and source generation. -> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/aws-lambda-host/)** +> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Overview @@ -256,11 +256,11 @@ builder.Services.ConfigureLambdaHostOptions(options => Available options include timeout control, shutdown duration, output formatting, and JSON serialization customization. The framework automatically registers `DefaultLambdaHostJsonSerializer` which uses `JsonSerializerOptions` and `JsonWriterOptions` for all Lambda serialization. See -the [configuration guide](https://github.com/j-d-ha/aws-lambda-host/wiki/Configuration) for details. +the [configuration guide](https://github.com/j-d-ha/minimal-lambda/wiki/Configuration) for details. ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/src/MinimalLambda.OpenTelemetry/README.md b/src/MinimalLambda.OpenTelemetry/README.md index 693d84af..c5b17082 100644 --- a/src/MinimalLambda.OpenTelemetry/README.md +++ b/src/MinimalLambda.OpenTelemetry/README.md @@ -2,7 +2,7 @@ OpenTelemetry integration for distributed tracing and observability in AWS Lambda functions. -> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/aws-lambda-host/)** +> πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Overview @@ -238,12 +238,12 @@ The example demonstrates: - [OpenTelemetry Instrumentation AWSLambda](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/tree/main/src/OpenTelemetry.Instrumentation.AWSLambda) – Source for the AWSLambda instrumentation -- [Full Project Documentation](https://github.com/j-d-ha/aws-lambda-host/wiki) – Comprehensive +- [Full Project Documentation](https://github.com/j-d-ha/minimal-lambda/wiki) – Comprehensive guides and patterns ## Other Packages -Additional packages in the aws-lambda-host framework for abstractions, observability, and event +Additional packages in the minimal-lambda framework for abstractions, observability, and event source handling. | Package | NuGet | Downloads | diff --git a/uv.lock b/uv.lock index 864f300b..44f17a6e 100644 --- a/uv.lock +++ b/uv.lock @@ -3,7 +3,7 @@ revision = 3 requires-python = ">=3.13" [[package]] -name = "aws-lambda-host-docs" +name = "minimal-lambda-docs" version = "0.1.0" source = { virtual = "." } dependencies = [ From 44794c801aea50c9c6c52845d6ef6ab23c3c493d Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 11:44:43 -0500 Subject: [PATCH 11/25] feat(core)!: rename configuration section from AwsLambdaHost to LambdaHost MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simplify the configuration section name from "AwsLambdaHost" to "LambdaHost" for better clarity and conciseness. This change affects how users configure the Lambda host in appsettings.json and environment variables. BREAKING CHANGE: Configuration section name changed from "AwsLambdaHost" to "LambdaHost" Users must update their configuration files: Before: { "AwsLambdaHost": { "InvocationCancellationBuffer": "00:00:05" } } After: { "LambdaHost": { "InvocationCancellationBuffer": "00:00:05" } } Environment variables must also be updated: - AwsLambdaHost__InvocationCancellationBuffer β†’ LambdaHost__InvocationCancellationBuffer - Pattern: AwsLambdaHost__* β†’ LambdaHost__* --- docs/guides/configuration.md | 48 ++++++++++++++----- .../appsettings.json | 2 +- .../appsettings.json | 2 +- .../appsettings.json | 2 +- .../Builder/LambdaApplicationBuilder.cs | 2 +- .../Builder/LambdaApplicationBuilderTests.cs | 2 +- 6 files changed, 42 insertions(+), 16 deletions(-) diff --git a/docs/guides/configuration.md b/docs/guides/configuration.md index ea5d38da..0810f2a5 100644 --- a/docs/guides/configuration.md +++ b/docs/guides/configuration.md @@ -5,6 +5,32 @@ settings from files and environment variables, and options bind those settings i objects. On top of that, `LambdaHostOptions` control the Lambda-specific runtime behavior (timeouts, shutdown windows, serializer choices, etc.). This guide covers both layers. +!!! warning "Breaking Change - Configuration Section Renamed" + Starting with version 2.0.0, the configuration section name has changed from `AwsLambdaHost` to `LambdaHost`. + + **Migration Required:** + + Update your `appsettings.json`: + ```json + // Before + { + "AwsLambdaHost": { + "InvocationCancellationBuffer": "00:00:05" + } + } + + // After + { + "LambdaHost": { + "InvocationCancellationBuffer": "00:00:05" + } + } + ``` + + Update environment variables: + - `AwsLambdaHost__InvocationCancellationBuffer` β†’ `LambdaHost__InvocationCancellationBuffer` + - Pattern: `AwsLambdaHost__*` β†’ `LambdaHost__*` + ## How Configuration Is Built `LambdaApplication.CreateBuilder()` wires up the standard .NET defaults unless you pass @@ -39,12 +65,12 @@ providers are added in the following order (later entries override earlier ones) ); ``` -The builder also binds the `AwsLambdaHost` section (from JSON or environment variables) into +The builder also binds the `LambdaHost` section (from JSON or environment variables) into `LambdaHostOptions` so framework settings can live next to your app configuration. ```json title="appsettings.json" { - "AwsLambdaHost": { + "LambdaHost": { "InitTimeout": "00:00:10", "InvocationCancellationBuffer": "00:00:05", "ShutdownDuration": "00:00:00.5000000", @@ -54,11 +80,11 @@ The builder also binds the `AwsLambdaHost` section (from JSON or environment var } ``` -Alternatively, set environment variables using the `AwsLambdaHost__{Option}` naming convention: +Alternatively, set environment variables using the `LambdaHost__{Option}` naming convention: ```bash -AwsLambdaHost__InvocationCancellationBuffer=00:00:05 -AwsLambdaHost__ClearLambdaOutputFormatting=true +LambdaHost__InvocationCancellationBuffer=00:00:05 +LambdaHost__ClearLambdaOutputFormatting=true ``` ## LambdaHostOptions Reference @@ -160,8 +186,8 @@ builder.Services.ConfigureLambdaHostOptions(options => }); ``` -Prefer configuration files? Set `"AwsLambdaHost": { "ClearLambdaOutputFormatting": true }` or the -`AwsLambdaHost__ClearLambdaOutputFormatting` environment variable. +Prefer configuration files? Set `"LambdaHost": { "ClearLambdaOutputFormatting": true }` or the +`LambdaHost__ClearLambdaOutputFormatting` environment variable. ### `BootstrapHttpClient` @@ -300,7 +326,7 @@ Resources: Variables: DATABASE__CONNECTIONSTRING: !Ref DatabaseConnectionString API_KEY: !Ref ApiKey - AwsLambdaHost__ClearLambdaOutputFormatting: true + LambdaHost__ClearLambdaOutputFormatting: true ``` Prefer the double underscore `__` separator when targeting hierarchical keys. @@ -371,7 +397,7 @@ For more complex rules implement `IValidatableObject` or add a custom validator. - **Validate on startup** – `ValidateOnStart()` catches missing sections before Lambda accepts traffic. - **Copy `appsettings.*` to the output** – Without it, Lambda cannot load the files. - **Use environment variables for secrets** – Combine SAM/CDK parameters with Secrets Manager references. -- **Stick to `AwsLambdaHost` section for framework knobs** – Keeps host settings discoverable and +- **Stick to `LambdaHost` section for framework knobs** – Keeps host settings discoverable and separate from business configuration. - **Clear Lambda output formatting when you own logging** – Avoid double-wrapping JSON payloads. @@ -384,8 +410,8 @@ For more complex rules implement `IValidatableObject` or add a custom validator. **Environment variable not loaded** – Remember to add `builder.Configuration.AddEnvironmentVariables()` if you call `CreateBuilder(new LambdaApplicationOptions { DisableDefaults = true })`. -**LambdaHostOptions ignored** – Verify the JSON is under `"AwsLambdaHost"` or that the environment -variable uses `AwsLambdaHost__OptionName`. +**LambdaHostOptions ignored** – Verify the JSON is under `"LambdaHost"` or that the environment +variable uses `LambdaHost__OptionName`. ## Next Steps diff --git a/examples/MinimalLambda.Example.Events/appsettings.json b/examples/MinimalLambda.Example.Events/appsettings.json index 53160eba..9942f934 100644 --- a/examples/MinimalLambda.Example.Events/appsettings.json +++ b/examples/MinimalLambda.Example.Events/appsettings.json @@ -1,5 +1,5 @@ { - "AwsLambdaHost": { + "LambdaHost": { "InvocationCancellationBuffer": "00:00:05" }, "Logging": { diff --git a/examples/MinimalLambda.Example.HelloWorld/appsettings.json b/examples/MinimalLambda.Example.HelloWorld/appsettings.json index 53160eba..9942f934 100644 --- a/examples/MinimalLambda.Example.HelloWorld/appsettings.json +++ b/examples/MinimalLambda.Example.HelloWorld/appsettings.json @@ -1,5 +1,5 @@ { - "AwsLambdaHost": { + "LambdaHost": { "InvocationCancellationBuffer": "00:00:05" }, "Logging": { diff --git a/examples/MinimalLambda.Example.Lifecycle/appsettings.json b/examples/MinimalLambda.Example.Lifecycle/appsettings.json index 68837917..ae1dc09f 100644 --- a/examples/MinimalLambda.Example.Lifecycle/appsettings.json +++ b/examples/MinimalLambda.Example.Lifecycle/appsettings.json @@ -1,5 +1,5 @@ { - "AwsLambdaHost": { + "LambdaHost": { "InvocationCancellationBuffer": "00:00:05" }, "Logging": { diff --git a/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs b/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs index b123ad3f..74c1ae93 100644 --- a/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs +++ b/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs @@ -38,7 +38,7 @@ namespace MinimalLambda.Builder; /// public sealed class LambdaApplicationBuilder : IHostApplicationBuilder { - private const string LambdaHostAppSettingsSectionName = "AwsLambdaHost"; + private const string LambdaHostAppSettingsSectionName = "LambdaHost"; private readonly HostApplicationBuilder _hostBuilder; private LambdaApplication? _builtApplication; diff --git a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs index 1696196a..d43642b6 100644 --- a/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs +++ b/tests/MinimalLambda.UnitTests/Builder/LambdaApplicationBuilderTests.cs @@ -324,7 +324,7 @@ public void Build_ConfigureOnInitBuilderCallback_AppliesClearLambdaOutputFormatt var builder = LambdaApplication.CreateBuilder(); // Configure to enable ClearLambdaOutputFormatting via appsettings - builder.Configuration["AwsLambdaHost:ClearLambdaOutputFormatting"] = "true"; + builder.Configuration["LambdaHost:ClearLambdaOutputFormatting"] = "true"; var app = builder.Build(); From 40b67e40cb4f4326fefc9e518660ee1816d83eb6 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 11:47:22 -0500 Subject: [PATCH 12/25] docs: finalize MinimalLambda branding in documentation Update remaining "AWS Lambda Host" references to "MinimalLambda" in CONTRIBUTING.md and package.json description. --- CONTRIBUTING.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 098a96cb..852e0874 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,11 +1,11 @@ -# Contributing to AWS Lambda Host +# Contributing to MinimalLambda Thank you for your interest in contributing to the AWS Lambda Host project! This document provides guidelines and instructions for contributing. ## Table of Contents -* [Contributing to AWS Lambda Host](#contributing-to-minimal-lambda) +* [Contributing to MinimalLambda](#contributing-to-minimal-lambda) * [Table of Contents](#table-of-contents) * [Code of Conduct](#code-of-conduct) * [Getting Started](#getting-started) diff --git a/package.json b/package.json index 84311d74..6d511461 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "minimal-lambda", "version": "0.0.7", - "description": "AWS Lambda Host - .NET library for running code on AWS Lambda", + "description": "MinimalLambda - Modern .NET framework for building AWS Lambda functions", "private": true, "devDependencies": { "@commitlint/cli": "^20.1.0", From 509546b0bf163efd6c23c6a1578b4af343e1ec55 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 11:53:49 -0500 Subject: [PATCH 13/25] refactor(core): merge `MinimalLambda.Core` into `MinimalLambda` and update namespace --- Directory.Build.props | 2 +- MinimalLambda.sln | 2 +- README.md | 6 +-- .../MinimalLambda.Benchmarks.csproj | 2 +- docs/getting-started/core-concepts.md | 2 +- docs/guides/middleware.md | 2 +- .../MinimalLambda.Example.Events.csproj | 2 +- .../MinimalLambda.Example.HelloWorld.csproj | 2 +- ...MinimalLambda.Example.HelloWorldAot.csproj | 2 +- .../MinimalLambda.Example.Lifecycle.csproj | 2 +- ...MinimalLambda.Example.OpenTelemetry.csproj | 2 +- .../Core/ILambdaCancellationFactory.cs | 2 +- .../Core/ILambdaHostContext.cs | 2 +- .../Core/ILambdaHostContextAccessor.cs | 2 +- .../Features/IEventFeature.cs | 2 +- .../Features/IEventFeatureProviderFactory.cs | 2 +- .../Features/IEventFeatureT.cs | 2 +- .../Features/IFeatureCollection.cs | 2 +- .../Features/IFeatureProvider.cs | 2 +- .../Features/IInvocationDataFeature.cs | 2 +- .../Features/IResponseFeature.cs | 2 +- .../IResponseFeatureProviderFactory.cs | 2 +- .../Features/IResponseFeatureT.cs | 2 +- .../GlobalUsings.cs | 2 +- .../LambdaOpenTelemetryAdapters.cs | 1 - .../MiddlewareOpenTelemetryExtensions.cs | 1 - .../GeneratorConstants.cs | 2 +- .../DefaultLambdaInvocationBuilderFactory.cs | 0 .../DefaultLambdaOnInitBuilderFactory.cs | 0 .../DefaultLambdaOnShutdownBuilderFactory.cs | 0 .../Builder/EventAttribute.cs | 0 .../BuilderLambdaApplicationExtensions.cs | 0 ...onfigurationServiceCollectionExtensions.cs | 0 ...daHttpClientServiceCollectionExtensions.cs | 0 .../MiddlewareLambdaApplicationExtensions.cs | 0 .../SerializerServiceCollectionExtensions.cs | 0 .../Extensions/ServiceCollectionExtensions.cs | 0 .../ILambdaInvocationBuilderFactory.cs | 0 .../Builder/ILambdaOnInitBuilderFactory.cs | 0 .../ILambdaOnShutdownBuilderFactory.cs | 0 .../MapHandlerLambdaApplicationExtensions.cs | 0 .../OnInitLambdaApplicationExtensions.cs | 0 .../OnShutdownLambdaApplicationExtensions.cs | 0 .../Builder/LambdaApplication.cs | 0 .../Builder/LambdaApplicationBuilder.cs | 0 .../Builder/LambdaInvocationBuilder.cs | 0 .../Builder/LambdaOnInitBuilder.cs | 0 .../Builder/LambdaOnShutdownBuilder.cs | 0 .../ClearLambdaOutputFormattingMiddleware.cs | 0 .../Middleware/RequestEnvelopeMiddleware.cs | 0 ...utFormattingLambdaApplicationExtensions.cs | 0 .../DefaultLambdaCancellationFactory.cs | 2 +- .../Core/Context/DefaultLambdaHostContext.cs | 2 +- .../Core/Context/ILambdaHostContextFactory.cs | 2 +- .../Core/Context/LambdaHostContextAccessor.cs | 2 +- .../Core/Context/LambdaHostContextFactory.cs | 2 +- .../Core/Features/DefaultEventFeature.cs | 2 +- .../Features/DefaultEventFeatureProvider.cs | 2 +- .../Core/Features/DefaultFeatureCollection.cs | 2 +- .../DefaultFeatureCollectionFactory.cs | 2 +- .../Core/Features/DefaultResponseFeature.cs | 2 +- .../DefaultResponseFeatureProvider.cs | 2 +- .../Features/EventFeatureProviderFactory.cs | 2 +- .../Features/FeatureCollectionExtensions.cs | 2 +- .../FeatureLambdaHostContextExtensions.cs | 2 +- .../Features/IFeatureCollectionFactory.cs | 2 +- .../Features/IInvocationDataFeatureFactory.cs | 2 +- .../Core/Features/InvocationDataFeature.cs | 2 +- .../Features/InvocationDataFeatureFactory.cs | 2 +- .../ResponseFeatureProviderFactory.cs | 2 +- .../EnvelopeOptionsPostConfiguration.cs | 0 .../Options/HostOptionsPostConfiguration.cs | 0 .../Core/Options/LambdaApplicationOptions.cs | 0 .../Core/Options/LambdaHostOptions.cs | 0 .../Options/LambdaHostedServiceOptions.cs | 0 .../Core/Options/ShutdownDuration.cs | 0 .../GlobalUsings.cs | 2 +- .../MinimalLambda.csproj} | 11 ++--- .../Properties/AssemblyInfo.cs | 0 .../README.md | 0 .../Runtime/ILambdaBootstrapOrchestrator.cs | 0 .../Runtime/ILambdaHandlerFactory.cs | 0 .../Runtime/LambdaBootstrapAdapter.cs | 0 .../Runtime/LambdaHandlerComposer.cs | 0 .../Runtime/LambdaHostedService.cs | 0 .../build/MinimalLambda.Core.targets | 2 +- .../GlobalUsings.cs | 2 +- .../GeneratorTestHelpers.cs | 1 - ...alLambda.SourceGenerators.UnitTests.csproj | 2 +- ...llInputSources#LambdaHandler.g.verified.cs | 4 +- ...tring_TypeCast#LambdaHandler.g.verified.cs | 4 +- ...eturn_TypeCast#LambdaHandler.g.verified.cs | 4 +- ...eInfo_TypeCast#LambdaHandler.g.verified.cs | 4 +- ...rnExplicitType#LambdaHandler.g.verified.cs | 4 +- ...plicitNullable#LambdaHandler.g.verified.cs | 4 +- ...a_ReturnString#LambdaHandler.g.verified.cs | 4 +- ...turnTaskString#LambdaHandler.g.verified.cs | 4 +- ...sTask_TypeCast#LambdaHandler.g.verified.cs | 4 +- ...StreamResponse#LambdaHandler.g.verified.cs | 4 +- ...ambda_TypeCast#LambdaHandler.g.verified.cs | 4 +- ...mKeyedServices#LambdaHandler.g.verified.cs | 4 +- ...cellationToken#LambdaHandler.g.verified.cs | 4 +- ...dLambdaContext#LambdaHandler.g.verified.cs | 4 +- ...bdaHostContext#LambdaHandler.g.verified.cs | 8 ++-- ...rnExplicitTask#LambdaHandler.g.verified.cs | 4 +- ..._ComplexOutput#LambdaHandler.g.verified.cs | 4 +- ...a_ExplicitVoid#LambdaHandler.g.verified.cs | 4 +- ..._InputDi_Async#LambdaHandler.g.verified.cs | 4 +- ..._AsyncAndAwait#LambdaHandler.g.verified.cs | 4 +- ...erentNamespace#LambdaHandler.g.verified.cs | 4 +- ...da_InputStream#LambdaHandler.g.verified.cs | 4 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 4 +- ...nGenericObject#LambdaHandler.g.verified.cs | 4 +- ...lablePrimitive#LambdaHandler.g.verified.cs | 4 +- ...t_ReturnString#LambdaHandler.g.verified.cs | 4 +- ...plicitNullable#LambdaHandler.g.verified.cs | 4 +- ...plicitNullable#LambdaHandler.g.verified.cs | 4 +- ...rnExplicitTask#LambdaHandler.g.verified.cs | 4 +- ...rnExplicitType#LambdaHandler.g.verified.cs | 4 +- ...tingPointTypes#LambdaHandler.g.verified.cs | 4 +- ...IntAndLongKeys#LambdaHandler.g.verified.cs | 4 +- ...ice_OtherTypes#LambdaHandler.g.verified.cs | 4 +- ...llIntegerTypes#LambdaHandler.g.verified.cs | 4 +- ...ingAndEnumKeys#LambdaHandler.g.verified.cs | 4 +- ...edIntegerTypes#LambdaHandler.g.verified.cs | 4 +- ...dler_AsyncVoid#LambdaHandler.g.verified.cs | 4 +- ...turnTaskString#LambdaHandler.g.verified.cs | 4 +- ...iKeyedServices#LambdaHandler.g.verified.cs | 4 +- ...kBody_TypeCast#LambdaHandler.g.verified.cs | 4 +- ...ypeCast_Static#LambdaHandler.g.verified.cs | 4 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 4 +- ...ler_ReturnTask#LambdaHandler.g.verified.cs | 4 +- ...turnTaskString#LambdaHandler.g.verified.cs | 4 +- ...traParentheses#LambdaHandler.g.verified.cs | 4 +- ...eturnTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...ler_AsyncAndDi#LambdaHandler.g.verified.cs | 2 +- ...UnexpectedType#LambdaHandler.g.verified.cs | 2 +- ...odHandler_NoDi#LambdaHandler.g.verified.cs | 2 +- ..._MultipleCalls#LambdaHandler.g.verified.cs | 2 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 2 +- ...eturnAsyncBool#LambdaHandler.g.verified.cs | 2 +- ...put_ReturnBool#LambdaHandler.g.verified.cs | 2 +- ...otExpectedType#LambdaHandler.g.verified.cs | 2 +- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...pectedTypeTask#LambdaHandler.g.verified.cs | 2 +- ...ReturnTaskBool#LambdaHandler.g.verified.cs | 2 +- ...eferenceInputs#LambdaHandler.g.verified.cs | 2 +- ...bleKindOfInput#LambdaHandler.g.verified.cs | 2 +- ...PrimitiveInput#LambdaHandler.g.verified.cs | 2 +- ...nsImplicitVoid#LambdaHandler.g.verified.cs | 2 +- ..._MultipleCalls#LambdaHandler.g.verified.cs | 2 +- ...utdown_NoInput#LambdaHandler.g.verified.cs | 2 +- ...UnexpectedType#LambdaHandler.g.verified.cs | 2 +- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 2 +- ...pectedTypeTask#LambdaHandler.g.verified.cs | 2 +- ...eferenceInputs#LambdaHandler.g.verified.cs | 2 +- ...bleKindOfInput#LambdaHandler.g.verified.cs | 2 +- ...PrimitiveInput#LambdaHandler.g.verified.cs | 2 +- .../VerifyTests/BlockLambdaVerifyTests.cs | 24 +++++------ .../ExpressionLambdaVerifyTests.cs | 40 +++++++++---------- .../VerifyTests/KeyedServiceVerifyTests.cs | 12 +++--- .../VerifyTests/OnInitVerifyTests.cs | 32 +++++++-------- .../VerifyTests/OnShutdownVerifyTests.cs | 20 +++++----- .../VerifyTests/StaticMethodVerifyTests.cs | 18 ++++----- tests/MinimalLambda.UnitTests/GlobalUsings.cs | 2 +- .../MinimalLambda.UnitTests.csproj | 2 +- 166 files changed, 244 insertions(+), 252 deletions(-) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/DefaultLambdaInvocationBuilderFactory.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/DefaultLambdaOnInitBuilderFactory.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/DefaultLambdaOnShutdownBuilderFactory.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/EventAttribute.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Extensions/BuilderLambdaApplicationExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Extensions/SerializerServiceCollectionExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Extensions/ServiceCollectionExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/ILambdaInvocationBuilderFactory.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/ILambdaOnInitBuilderFactory.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/ILambdaOnShutdownBuilderFactory.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/LambdaApplication.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/LambdaApplicationBuilder.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/LambdaInvocationBuilder.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/LambdaOnInitBuilder.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/LambdaOnShutdownBuilder.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/Middleware/RequestEnvelopeMiddleware.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Cancellation/DefaultLambdaCancellationFactory.cs (99%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Context/DefaultLambdaHostContext.cs (99%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Context/ILambdaHostContextFactory.cs (89%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Context/LambdaHostContextAccessor.cs (96%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Context/LambdaHostContextFactory.cs (98%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/DefaultEventFeature.cs (97%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/DefaultEventFeatureProvider.cs (96%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/DefaultFeatureCollection.cs (98%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/DefaultFeatureCollectionFactory.cs (90%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/DefaultResponseFeature.cs (97%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/DefaultResponseFeatureProvider.cs (96%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/EventFeatureProviderFactory.cs (89%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/FeatureCollectionExtensions.cs (98%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/FeatureLambdaHostContextExtensions.cs (99%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/IFeatureCollectionFactory.cs (81%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/IInvocationDataFeatureFactory.cs (78%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/InvocationDataFeature.cs (93%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/InvocationDataFeatureFactory.cs (87%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Features/ResponseFeatureProviderFactory.cs (89%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Options/EnvelopeOptionsPostConfiguration.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Options/HostOptionsPostConfiguration.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Options/LambdaApplicationOptions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Options/LambdaHostOptions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Options/LambdaHostedServiceOptions.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Core/Options/ShutdownDuration.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/GlobalUsings.cs (76%) rename src/{MinimalLambda.Core/MinimalLambda.Core.csproj => MinimalLambda/MinimalLambda.csproj} (89%) rename src/{MinimalLambda.Core => MinimalLambda}/Properties/AssemblyInfo.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/README.md (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Runtime/ILambdaBootstrapOrchestrator.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Runtime/ILambdaHandlerFactory.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Runtime/LambdaBootstrapAdapter.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Runtime/LambdaHandlerComposer.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/Runtime/LambdaHostedService.cs (100%) rename src/{MinimalLambda.Core => MinimalLambda}/build/MinimalLambda.Core.targets (79%) diff --git a/Directory.Build.props b/Directory.Build.props index 7e92472f..d14fc670 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 1.2.1-beta.2 + 2.0.0-beta.1 MIT diff --git a/MinimalLambda.sln b/MinimalLambda.sln index e55bc3e1..cd134e3f 100644 --- a/MinimalLambda.sln +++ b/MinimalLambda.sln @@ -30,7 +30,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.OpenTelemetry EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.SourceGenerators", "src\MinimalLambda.SourceGenerators\MinimalLambda.SourceGenerators.csproj", "{2CCDEC5D-5A84-2F11-A2F9-A6AF00F2112D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda.Core", "src\MinimalLambda.Core\MinimalLambda.Core.csproj", "{6C9DE6F5-2E44-A1BE-0E21-D39850C45EF3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalLambda", "src\MinimalLambda\MinimalLambda.csproj", "{6C9DE6F5-2E44-A1BE-0E21-D39850C45EF3}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0AB3BF05-4346-4AA6-1389-037BE0695223}" EndProject diff --git a/README.md b/README.md index 50c8fbac..1b916c7c 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ The framework is divided into multiple NuGet packages: The core packages provide the fundamental hosting framework, abstractions, and observability support for building AWS Lambda functions. -| Package | NuGet | Downloads | -|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| -| [**MinimalLambda**](./src/MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | +| Package | NuGet | Downloads | +|--------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| +| [**MinimalLambda**](./src/MinimalLambda/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.svg)](https://www.nuget.org/packages/MinimalLambda/) | | [**MinimalLambda.Abstractions**](./src/MinimalLambda.Abstractions/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.Abstractions.svg)](https://www.nuget.org/packages/MinimalLambda.Abstractions/) | | [**MinimalLambda.OpenTelemetry**](./src/MinimalLambda.OpenTelemetry/README.md) | [![NuGet](https://img.shields.io/nuget/v/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry) | [![Downloads](https://img.shields.io/nuget/dt/MinimalLambda.OpenTelemetry.svg)](https://www.nuget.org/packages/MinimalLambda.OpenTelemetry/) | diff --git a/benchmarks/MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj b/benchmarks/MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj index 85e533b8..3605ebdf 100644 --- a/benchmarks/MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj +++ b/benchmarks/MinimalLambda.Benchmarks/MinimalLambda.Benchmarks.csproj @@ -19,6 +19,6 @@ - + diff --git a/docs/getting-started/core-concepts.md b/docs/getting-started/core-concepts.md index dac98352..d03d2d4a 100644 --- a/docs/getting-started/core-concepts.md +++ b/docs/getting-started/core-concepts.md @@ -222,7 +222,7 @@ Register `IFeatureProvider` implementations to add your own features or override ```csharp title="DefaultResponseFeatureProvider.cs" linenums="1" using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides a default implementation of for Lambda response diff --git a/docs/guides/middleware.md b/docs/guides/middleware.md index fbccf993..8225be65 100644 --- a/docs/guides/middleware.md +++ b/docs/guides/middleware.md @@ -176,7 +176,7 @@ serialization. Use the same pattern for your features. ```csharp title="DefaultResponseFeatureProvider.cs" linenums="1" using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides a default implementation of for Lambda response diff --git a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj index 2b631bb8..66abeee7 100644 --- a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj +++ b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj @@ -17,7 +17,7 @@ false - + - + false - + false - + - + diff --git a/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs b/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs index 21b7a3bf..a976575f 100644 --- a/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs +++ b/src/MinimalLambda.Abstractions/Core/ILambdaCancellationFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides a factory for creating cancellation token sources configured for AWS Lambda diff --git a/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs b/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs index 71d7d00b..3a7a2484 100644 --- a/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs +++ b/src/MinimalLambda.Abstractions/Core/ILambdaHostContext.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Encapsulates the information about a Lambda invocation. It extends diff --git a/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs b/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs index eac0eb94..a1e02320 100644 --- a/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs +++ b/src/MinimalLambda.Abstractions/Core/ILambdaHostContextAccessor.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides access to the for the current Lambda diff --git a/src/MinimalLambda.Abstractions/Features/IEventFeature.cs b/src/MinimalLambda.Abstractions/Features/IEventFeature.cs index 696717a3..a29fa75d 100644 --- a/src/MinimalLambda.Abstractions/Features/IEventFeature.cs +++ b/src/MinimalLambda.Abstractions/Features/IEventFeature.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Provides access to the deserialized Lambda invocation event. /// diff --git a/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs b/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs index 9429ff04..8f4a1c28 100644 --- a/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs +++ b/src/MinimalLambda.Abstractions/Features/IEventFeatureProviderFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Creates feature providers for Lambda event deserialization. /// diff --git a/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs b/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs index 25c5aea1..82963dcd 100644 --- a/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs +++ b/src/MinimalLambda.Abstractions/Features/IEventFeatureT.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Provides access to the deserialized Lambda invocation event of a specific type. /// The type of the event object. diff --git a/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs b/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs index 860c3a3d..99509b9f 100644 --- a/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs +++ b/src/MinimalLambda.Abstractions/Features/IFeatureCollection.cs @@ -6,7 +6,7 @@ // See THIRD-PARTY-LICENSES.txt file in the project root or visit // https://github.com/Azure/azure-functions-dotnet-worker/blob/2.51.0/LICENSE -namespace MinimalLambda.Core; +namespace MinimalLambda; /// A type-keyed collection of features available during a Lambda invocation. /// diff --git a/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs b/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs index 740e07c8..d4b9df89 100644 --- a/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs +++ b/src/MinimalLambda.Abstractions/Features/IFeatureProvider.cs @@ -6,7 +6,7 @@ // See THIRD-PARTY-LICENSES.txt file in the project root or visit // https://github.com/Azure/azure-functions-dotnet-worker/blob/2.51.0/LICENSE -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Provides a mechanism to create feature instances on demand. /// diff --git a/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs b/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs index 59e0ed10..b8b11f93 100644 --- a/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs +++ b/src/MinimalLambda.Abstractions/Features/IInvocationDataFeature.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides access to the invocation event and response data for a Lambda function diff --git a/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs index 4880766c..c441ee14 100644 --- a/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs +++ b/src/MinimalLambda.Abstractions/Features/IResponseFeature.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Provides access to the Lambda invocation response. /// diff --git a/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs index 255328b5..6444d715 100644 --- a/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs +++ b/src/MinimalLambda.Abstractions/Features/IResponseFeatureProviderFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Creates feature providers for Lambda response serialization. /// diff --git a/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs b/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs index 3e468364..9bb16b13 100644 --- a/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs +++ b/src/MinimalLambda.Abstractions/Features/IResponseFeatureT.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Provides type-safe access to the Lambda invocation response of a specific type. /// The type of the response object. diff --git a/src/MinimalLambda.Abstractions/GlobalUsings.cs b/src/MinimalLambda.Abstractions/GlobalUsings.cs index 24423046..aa15939a 100644 --- a/src/MinimalLambda.Abstractions/GlobalUsings.cs +++ b/src/MinimalLambda.Abstractions/GlobalUsings.cs @@ -1,4 +1,4 @@ global using MinimalLambda; +global using MinimalLambda; global using MinimalLambda.Builder; -global using MinimalLambda.Core; global using MinimalLambda.Options; diff --git a/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs b/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs index f9a034b7..f7663547 100644 --- a/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs +++ b/src/MinimalLambda.OpenTelemetry/LambdaOpenTelemetryAdapters.cs @@ -1,6 +1,5 @@ using Amazon.Lambda.Core; using MinimalLambda; -using MinimalLambda.Core; using OpenTelemetry.Instrumentation.AWSLambda; using OpenTelemetry.Trace; diff --git a/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs b/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs index e51b2840..15e67768 100644 --- a/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs +++ b/src/MinimalLambda.OpenTelemetry/MiddlewareOpenTelemetryExtensions.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using MinimalLambda.Core; using OpenTelemetry.Instrumentation.AWSLambda; using OpenTelemetry.Trace; diff --git a/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs b/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs index e7057203..7c64ce10 100644 --- a/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs +++ b/src/MinimalLambda.SourceGenerators/GeneratorConstants.cs @@ -5,7 +5,7 @@ internal static class TypeConstants { internal const string ILambdaContext = "global::Amazon.Lambda.Core.ILambdaContext"; - internal const string ILambdaHostContext = "global::MinimalLambda.Core.ILambdaHostContext"; + internal const string ILambdaHostContext = "global::MinimalLambda.ILambdaHostContext"; internal const string CancellationToken = "global::System.Threading.CancellationToken"; diff --git a/src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs b/src/MinimalLambda/Builder/DefaultLambdaInvocationBuilderFactory.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/DefaultLambdaInvocationBuilderFactory.cs rename to src/MinimalLambda/Builder/DefaultLambdaInvocationBuilderFactory.cs diff --git a/src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs b/src/MinimalLambda/Builder/DefaultLambdaOnInitBuilderFactory.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/DefaultLambdaOnInitBuilderFactory.cs rename to src/MinimalLambda/Builder/DefaultLambdaOnInitBuilderFactory.cs diff --git a/src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs b/src/MinimalLambda/Builder/DefaultLambdaOnShutdownBuilderFactory.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/DefaultLambdaOnShutdownBuilderFactory.cs rename to src/MinimalLambda/Builder/DefaultLambdaOnShutdownBuilderFactory.cs diff --git a/src/MinimalLambda.Core/Builder/EventAttribute.cs b/src/MinimalLambda/Builder/EventAttribute.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/EventAttribute.cs rename to src/MinimalLambda/Builder/EventAttribute.cs diff --git a/src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs b/src/MinimalLambda/Builder/Extensions/BuilderLambdaApplicationExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Extensions/BuilderLambdaApplicationExtensions.cs rename to src/MinimalLambda/Builder/Extensions/BuilderLambdaApplicationExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs b/src/MinimalLambda/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs rename to src/MinimalLambda/Builder/Extensions/ConfigurationServiceCollectionExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs b/src/MinimalLambda/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs rename to src/MinimalLambda/Builder/Extensions/LambdaHttpClientServiceCollectionExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs b/src/MinimalLambda/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs rename to src/MinimalLambda/Builder/Extensions/MiddlewareLambdaApplicationExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/Extensions/SerializerServiceCollectionExtensions.cs b/src/MinimalLambda/Builder/Extensions/SerializerServiceCollectionExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Extensions/SerializerServiceCollectionExtensions.cs rename to src/MinimalLambda/Builder/Extensions/SerializerServiceCollectionExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/Extensions/ServiceCollectionExtensions.cs b/src/MinimalLambda/Builder/Extensions/ServiceCollectionExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Extensions/ServiceCollectionExtensions.cs rename to src/MinimalLambda/Builder/Extensions/ServiceCollectionExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs b/src/MinimalLambda/Builder/ILambdaInvocationBuilderFactory.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/ILambdaInvocationBuilderFactory.cs rename to src/MinimalLambda/Builder/ILambdaInvocationBuilderFactory.cs diff --git a/src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs b/src/MinimalLambda/Builder/ILambdaOnInitBuilderFactory.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/ILambdaOnInitBuilderFactory.cs rename to src/MinimalLambda/Builder/ILambdaOnInitBuilderFactory.cs diff --git a/src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs b/src/MinimalLambda/Builder/ILambdaOnShutdownBuilderFactory.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/ILambdaOnShutdownBuilderFactory.cs rename to src/MinimalLambda/Builder/ILambdaOnShutdownBuilderFactory.cs diff --git a/src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs b/src/MinimalLambda/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs rename to src/MinimalLambda/Builder/InterceptionTargets/MapHandlerLambdaApplicationExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs b/src/MinimalLambda/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs rename to src/MinimalLambda/Builder/InterceptionTargets/OnInitLambdaApplicationExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs b/src/MinimalLambda/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs rename to src/MinimalLambda/Builder/InterceptionTargets/OnShutdownLambdaApplicationExtensions.cs diff --git a/src/MinimalLambda.Core/Builder/LambdaApplication.cs b/src/MinimalLambda/Builder/LambdaApplication.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/LambdaApplication.cs rename to src/MinimalLambda/Builder/LambdaApplication.cs diff --git a/src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs b/src/MinimalLambda/Builder/LambdaApplicationBuilder.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/LambdaApplicationBuilder.cs rename to src/MinimalLambda/Builder/LambdaApplicationBuilder.cs diff --git a/src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs b/src/MinimalLambda/Builder/LambdaInvocationBuilder.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/LambdaInvocationBuilder.cs rename to src/MinimalLambda/Builder/LambdaInvocationBuilder.cs diff --git a/src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs b/src/MinimalLambda/Builder/LambdaOnInitBuilder.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/LambdaOnInitBuilder.cs rename to src/MinimalLambda/Builder/LambdaOnInitBuilder.cs diff --git a/src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs b/src/MinimalLambda/Builder/LambdaOnShutdownBuilder.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/LambdaOnShutdownBuilder.cs rename to src/MinimalLambda/Builder/LambdaOnShutdownBuilder.cs diff --git a/src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs b/src/MinimalLambda/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs rename to src/MinimalLambda/Builder/Middleware/ClearLambdaOutputFormattingMiddleware.cs diff --git a/src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs b/src/MinimalLambda/Builder/Middleware/RequestEnvelopeMiddleware.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/Middleware/RequestEnvelopeMiddleware.cs rename to src/MinimalLambda/Builder/Middleware/RequestEnvelopeMiddleware.cs diff --git a/src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs b/src/MinimalLambda/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs similarity index 100% rename from src/MinimalLambda.Core/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs rename to src/MinimalLambda/Builder/OnInit/OutputFormattingLambdaApplicationExtensions.cs diff --git a/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs b/src/MinimalLambda/Core/Cancellation/DefaultLambdaCancellationFactory.cs similarity index 99% rename from src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs rename to src/MinimalLambda/Core/Cancellation/DefaultLambdaCancellationFactory.cs index e40cf4a4..abd9fc36 100644 --- a/src/MinimalLambda.Core/Core/Cancellation/DefaultLambdaCancellationFactory.cs +++ b/src/MinimalLambda/Core/Cancellation/DefaultLambdaCancellationFactory.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.Options; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides functionality to create a with respect to diff --git a/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs b/src/MinimalLambda/Core/Context/DefaultLambdaHostContext.cs similarity index 99% rename from src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs rename to src/MinimalLambda/Core/Context/DefaultLambdaHostContext.cs index 0096dffd..df2ca1e4 100644 --- a/src/MinimalLambda.Core/Core/Context/DefaultLambdaHostContext.cs +++ b/src/MinimalLambda/Core/Context/DefaultLambdaHostContext.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.DependencyInjection; -namespace MinimalLambda.Core; +namespace MinimalLambda; internal sealed class DefaultLambdaHostContext : ILambdaHostContext, IAsyncDisposable { diff --git a/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs b/src/MinimalLambda/Core/Context/ILambdaHostContextFactory.cs similarity index 89% rename from src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs rename to src/MinimalLambda/Core/Context/ILambdaHostContextFactory.cs index f51314f3..69b39e03 100644 --- a/src/MinimalLambda.Core/Core/Context/ILambdaHostContextFactory.cs +++ b/src/MinimalLambda/Core/Context/ILambdaHostContextFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; internal interface ILambdaHostContextFactory { diff --git a/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs b/src/MinimalLambda/Core/Context/LambdaHostContextAccessor.cs similarity index 96% rename from src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs rename to src/MinimalLambda/Core/Context/LambdaHostContextAccessor.cs index a4497794..70c5ef82 100644 --- a/src/MinimalLambda.Core/Core/Context/LambdaHostContextAccessor.cs +++ b/src/MinimalLambda/Core/Context/LambdaHostContextAccessor.cs @@ -6,7 +6,7 @@ // See THIRD-PARTY-LICENSES.txt file in the project root or visit // https://github.com/dotnet/aspnetcore/blob/v10.0.0/LICENSE.txt -namespace MinimalLambda.Core; +namespace MinimalLambda; internal class LambdaHostContextAccessor : ILambdaHostContextAccessor { diff --git a/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs b/src/MinimalLambda/Core/Context/LambdaHostContextFactory.cs similarity index 98% rename from src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs rename to src/MinimalLambda/Core/Context/LambdaHostContextFactory.cs index 291e16d2..e16f560a 100644 --- a/src/MinimalLambda.Core/Core/Context/LambdaHostContextFactory.cs +++ b/src/MinimalLambda/Core/Context/LambdaHostContextFactory.cs @@ -1,7 +1,7 @@ using Amazon.Lambda.Core; using Microsoft.Extensions.DependencyInjection; -namespace MinimalLambda.Core; +namespace MinimalLambda; internal class LambdaHostContextFactory : ILambdaHostContextFactory { diff --git a/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs b/src/MinimalLambda/Core/Features/DefaultEventFeature.cs similarity index 97% rename from src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs rename to src/MinimalLambda/Core/Features/DefaultEventFeature.cs index 37516c85..d6b7db24 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultEventFeature.cs +++ b/src/MinimalLambda/Core/Features/DefaultEventFeature.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Default implementation of that is used by source generated diff --git a/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs b/src/MinimalLambda/Core/Features/DefaultEventFeatureProvider.cs similarity index 96% rename from src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs rename to src/MinimalLambda/Core/Features/DefaultEventFeatureProvider.cs index fc1a967a..f730a6b9 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultEventFeatureProvider.cs +++ b/src/MinimalLambda/Core/Features/DefaultEventFeatureProvider.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides a default implementation of for Lambda event diff --git a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs b/src/MinimalLambda/Core/Features/DefaultFeatureCollection.cs similarity index 98% rename from src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs rename to src/MinimalLambda/Core/Features/DefaultFeatureCollection.cs index 1966bbca..e9c833e3 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollection.cs +++ b/src/MinimalLambda/Core/Features/DefaultFeatureCollection.cs @@ -8,7 +8,7 @@ using System.Collections; -namespace MinimalLambda.Core; +namespace MinimalLambda; internal class DefaultFeatureCollection : IFeatureCollection { diff --git a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs b/src/MinimalLambda/Core/Features/DefaultFeatureCollectionFactory.cs similarity index 90% rename from src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs rename to src/MinimalLambda/Core/Features/DefaultFeatureCollectionFactory.cs index 504da4c9..bdd130f6 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultFeatureCollectionFactory.cs +++ b/src/MinimalLambda/Core/Features/DefaultFeatureCollectionFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; internal class DefaultFeatureCollectionFactory(IEnumerable providers) : IFeatureCollectionFactory diff --git a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs b/src/MinimalLambda/Core/Features/DefaultResponseFeature.cs similarity index 97% rename from src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs rename to src/MinimalLambda/Core/Features/DefaultResponseFeature.cs index 151f1514..fdb6bd8c 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeature.cs +++ b/src/MinimalLambda/Core/Features/DefaultResponseFeature.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Default implementation of that is used by source diff --git a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs b/src/MinimalLambda/Core/Features/DefaultResponseFeatureProvider.cs similarity index 96% rename from src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs rename to src/MinimalLambda/Core/Features/DefaultResponseFeatureProvider.cs index e4d418ac..ccc91939 100644 --- a/src/MinimalLambda.Core/Core/Features/DefaultResponseFeatureProvider.cs +++ b/src/MinimalLambda/Core/Features/DefaultResponseFeatureProvider.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides a default implementation of for Lambda response diff --git a/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs b/src/MinimalLambda/Core/Features/EventFeatureProviderFactory.cs similarity index 89% rename from src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs rename to src/MinimalLambda/Core/Features/EventFeatureProviderFactory.cs index 7cb60f98..dfcc61de 100644 --- a/src/MinimalLambda.Core/Core/Features/EventFeatureProviderFactory.cs +++ b/src/MinimalLambda/Core/Features/EventFeatureProviderFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; internal class EventFeatureProviderFactory(ILambdaSerializer lambdaSerializer) : IEventFeatureProviderFactory diff --git a/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs b/src/MinimalLambda/Core/Features/FeatureCollectionExtensions.cs similarity index 98% rename from src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs rename to src/MinimalLambda/Core/Features/FeatureCollectionExtensions.cs index 1bc38802..adb322e2 100644 --- a/src/MinimalLambda.Core/Core/Features/FeatureCollectionExtensions.cs +++ b/src/MinimalLambda/Core/Features/FeatureCollectionExtensions.cs @@ -8,7 +8,7 @@ using System.Diagnostics.CodeAnalysis; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// Extension methods for feature collections. public static class FeatureCollectionExtensions diff --git a/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs b/src/MinimalLambda/Core/Features/FeatureLambdaHostContextExtensions.cs similarity index 99% rename from src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs rename to src/MinimalLambda/Core/Features/FeatureLambdaHostContextExtensions.cs index 96818997..53cdef8d 100644 --- a/src/MinimalLambda.Core/Core/Features/FeatureLambdaHostContextExtensions.cs +++ b/src/MinimalLambda/Core/Features/FeatureLambdaHostContextExtensions.cs @@ -1,6 +1,6 @@ using System.Diagnostics.CodeAnalysis; -namespace MinimalLambda.Core; +namespace MinimalLambda; /// /// Provides extension methods for safely accessing typed event and response data from the diff --git a/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs b/src/MinimalLambda/Core/Features/IFeatureCollectionFactory.cs similarity index 81% rename from src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs rename to src/MinimalLambda/Core/Features/IFeatureCollectionFactory.cs index 39b00e24..6e69a1f1 100644 --- a/src/MinimalLambda.Core/Core/Features/IFeatureCollectionFactory.cs +++ b/src/MinimalLambda/Core/Features/IFeatureCollectionFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; internal interface IFeatureCollectionFactory { diff --git a/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs b/src/MinimalLambda/Core/Features/IInvocationDataFeatureFactory.cs similarity index 78% rename from src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs rename to src/MinimalLambda/Core/Features/IInvocationDataFeatureFactory.cs index 819401e4..b2510c1c 100644 --- a/src/MinimalLambda.Core/Core/Features/IInvocationDataFeatureFactory.cs +++ b/src/MinimalLambda/Core/Features/IInvocationDataFeatureFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; internal interface IInvocationDataFeatureFactory { diff --git a/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs b/src/MinimalLambda/Core/Features/InvocationDataFeature.cs similarity index 93% rename from src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs rename to src/MinimalLambda/Core/Features/InvocationDataFeature.cs index a24ac869..faa8fc03 100644 --- a/src/MinimalLambda.Core/Core/Features/InvocationDataFeature.cs +++ b/src/MinimalLambda/Core/Features/InvocationDataFeature.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; internal sealed class InvocationDataFeature : IInvocationDataFeature { diff --git a/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs b/src/MinimalLambda/Core/Features/InvocationDataFeatureFactory.cs similarity index 87% rename from src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs rename to src/MinimalLambda/Core/Features/InvocationDataFeatureFactory.cs index f42d1684..beff05a9 100644 --- a/src/MinimalLambda.Core/Core/Features/InvocationDataFeatureFactory.cs +++ b/src/MinimalLambda/Core/Features/InvocationDataFeatureFactory.cs @@ -1,4 +1,4 @@ -namespace MinimalLambda.Core; +namespace MinimalLambda; internal class InvocationDataFeatureFactory : IInvocationDataFeatureFactory { diff --git a/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs b/src/MinimalLambda/Core/Features/ResponseFeatureProviderFactory.cs similarity index 89% rename from src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs rename to src/MinimalLambda/Core/Features/ResponseFeatureProviderFactory.cs index ff88c27d..53c9faca 100644 --- a/src/MinimalLambda.Core/Core/Features/ResponseFeatureProviderFactory.cs +++ b/src/MinimalLambda/Core/Features/ResponseFeatureProviderFactory.cs @@ -1,6 +1,6 @@ using Amazon.Lambda.Core; -namespace MinimalLambda.Core; +namespace MinimalLambda; internal class ResponseFeatureProviderFactory(ILambdaSerializer lambdaSerializer) : IResponseFeatureProviderFactory diff --git a/src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs b/src/MinimalLambda/Core/Options/EnvelopeOptionsPostConfiguration.cs similarity index 100% rename from src/MinimalLambda.Core/Core/Options/EnvelopeOptionsPostConfiguration.cs rename to src/MinimalLambda/Core/Options/EnvelopeOptionsPostConfiguration.cs diff --git a/src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs b/src/MinimalLambda/Core/Options/HostOptionsPostConfiguration.cs similarity index 100% rename from src/MinimalLambda.Core/Core/Options/HostOptionsPostConfiguration.cs rename to src/MinimalLambda/Core/Options/HostOptionsPostConfiguration.cs diff --git a/src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs b/src/MinimalLambda/Core/Options/LambdaApplicationOptions.cs similarity index 100% rename from src/MinimalLambda.Core/Core/Options/LambdaApplicationOptions.cs rename to src/MinimalLambda/Core/Options/LambdaApplicationOptions.cs diff --git a/src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs b/src/MinimalLambda/Core/Options/LambdaHostOptions.cs similarity index 100% rename from src/MinimalLambda.Core/Core/Options/LambdaHostOptions.cs rename to src/MinimalLambda/Core/Options/LambdaHostOptions.cs diff --git a/src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs b/src/MinimalLambda/Core/Options/LambdaHostedServiceOptions.cs similarity index 100% rename from src/MinimalLambda.Core/Core/Options/LambdaHostedServiceOptions.cs rename to src/MinimalLambda/Core/Options/LambdaHostedServiceOptions.cs diff --git a/src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs b/src/MinimalLambda/Core/Options/ShutdownDuration.cs similarity index 100% rename from src/MinimalLambda.Core/Core/Options/ShutdownDuration.cs rename to src/MinimalLambda/Core/Options/ShutdownDuration.cs diff --git a/src/MinimalLambda.Core/GlobalUsings.cs b/src/MinimalLambda/GlobalUsings.cs similarity index 76% rename from src/MinimalLambda.Core/GlobalUsings.cs rename to src/MinimalLambda/GlobalUsings.cs index ea5e2789..b59a29b1 100644 --- a/src/MinimalLambda.Core/GlobalUsings.cs +++ b/src/MinimalLambda/GlobalUsings.cs @@ -1,4 +1,4 @@ +global using MinimalLambda; global using MinimalLambda.Builder; -global using MinimalLambda.Core; global using MinimalLambda.Options; global using MinimalLambda.Runtime; diff --git a/src/MinimalLambda.Core/MinimalLambda.Core.csproj b/src/MinimalLambda/MinimalLambda.csproj similarity index 89% rename from src/MinimalLambda.Core/MinimalLambda.Core.csproj rename to src/MinimalLambda/MinimalLambda.csproj index 04f3234a..3f2d0d19 100644 --- a/src/MinimalLambda.Core/MinimalLambda.Core.csproj +++ b/src/MinimalLambda/MinimalLambda.csproj @@ -8,7 +8,7 @@ true true - MinimalLambda.Core + MinimalLambda .NET Host for AWS Lambda README.md MinimalLambda.Host @@ -22,14 +22,9 @@ + - - $(InterceptorsPreviewNamespaces);MinimalLambda.Core.Generated + $(InterceptorsPreviewNamespaces);MinimalLambda.Generated diff --git a/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs index 298a3e98..0dd9008e 100644 --- a/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs @@ -3,8 +3,8 @@ global using AwesomeAssertions; global using JetBrains.Annotations; global using MinimalLambda; +global using MinimalLambda; global using MinimalLambda.Builder; -global using MinimalLambda.Core; global using MinimalLambda.Options; global using NSubstitute; global using Xunit; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index 64a95faf..6ec047af 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -10,7 +10,6 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; using MinimalLambda.Builder; -using MinimalLambda.Core; namespace MinimalLambda.SourceGenerators.UnitTests; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj index 89903a36..fe7e7424 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj @@ -34,7 +34,7 @@ - + diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs index 57db1580..0122487f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs index 18aeeece..bdaf1004 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs index 3fcad4e8..6648adfc 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs index 6aa4705e..98393ae5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index ee59e361..5f549626 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 655522f2..0134f42d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs index 9b91357e..73daccaa 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs index f6244825..c3f17c39 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs index d82af877..4cf67a46 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs index 446bed65..d3d95d6d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs index 74355e8e..0b67b73b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs index 36f13f83..b2fe013c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs index 14a24b6e..ecd8d212 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs index 4912d9f0..84f0b763 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs index 1f0f3d8b..6a9612b7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] @@ -49,7 +49,7 @@ internal static ILambdaInvocationBuilder MapHandlerInterceptor0( Delegate handler ) { - var castHandler = (global::System.Func)handler; + var castHandler = (global::System.Func)handler; application.Handle(InvocationDelegate); @@ -64,7 +64,7 @@ Task InvocationDelegate(ILambdaHostContext context) { // ParameterInfo { Type = global::System.Threading.CancellationToken, Name = ct, Source = CancellationToken, IsNullable = False, IsOptional = False} var arg0 = context.CancellationToken; - // ParameterInfo { Type = global::MinimalLambda.Core.ILambdaHostContext, Name = ctx, Source = Context, IsNullable = False, IsOptional = False} + // ParameterInfo { Type = global::MinimalLambda.ILambdaHostContext, Name = ctx, Source = Context, IsNullable = False, IsOptional = False} var arg1 = context; var response = castHandler.Invoke(arg0, arg1); if (context.Features.Get() is not IResponseFeature responseFeature) diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs index 8b8cc052..9c022541 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs index da7a4c6d..163f4137 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs index 71168c9b..c4419c66 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs index c8e1b1bf..23f30847 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs index 7ddca9f4..c8af7bc7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs index eeaa6f9c..aa141340 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs index 4c7a1656..6e63e861 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs index f39294c2..e1f32701 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs index 5e896791..1c51b127 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs index 88caf113..8bba4384 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs index 2fc94875..67faca17 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs index 13bdf7dc..1d50790e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs index aff626f2..3211f542 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs index 6dc1f2ce..e4632c8b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 57966750..9efb50b8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs index 87b24dbb..0a92314d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs index 68b77401..fbc7d69f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs index 2cddf31b..b70318a5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs index 574bf581..b8cf24b0 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs index a4f24696..fb22f729 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs index 81bc8a37..2d853f08 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs index e317f0bc..917de1a9 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs index 5c65bf8c..b4900f22 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs index 32832f62..15e43b88 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs index c0bae9c9..233d5ba5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs index 21611425..1738ecbc 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs index 71e5d378..bedc0ec0 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs index 22a5980c..38224fea 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs index a79dc1be..55fb4a6d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs index 6c78a626..a00edbe6 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs @@ -26,14 +26,14 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Threading.Tasks; using MinimalLambda.Builder; - using MinimalLambda.Core; + using MinimalLambda; using Microsoft.Extensions.DependencyInjection; [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs index 2944bbba..6c436ffe 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs index 150ab904..8fd937c4 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs index 3b6cc51b..6f277ac6 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs index 85bdf9b7..3a42139d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs index 55f67f4b..b63d39c8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs index 39261c2d..d3059081 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs index 707f5397..4f92ceae 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs index 043332d2..c053504f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs index d2e70ffd..c0efd4aa 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs index 805952b6..755f95d7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs index 4795c6b4..9e619dfb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs index 44ad39b8..dd8651e5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index 393e2195..93033de7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index a18a4fa4..e85cd63f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs index a7e38528..fcb1e336 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs index a485fbdb..38cacb39 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs index dbed71a7..67925c12 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs index da8d9f4e..5ed4309e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs index 87e33851..673fa2e5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs index 6cc23279..3c41503b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs index 5c2ff0e0..ffd3c566 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index c40ff4eb..68aed159 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index 12c605ab..d21beb8b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs index d68f71df..da2e05d8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs @@ -26,7 +26,7 @@ public InterceptsLocationAttribute(int version, string data) } } -namespace MinimalLambda.Core.Generated +namespace MinimalLambda.Generated { using System; using System.CodeDom.Compiler; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs index ade59361..910dd3a2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/BlockLambdaVerifyTests.cs @@ -7,7 +7,7 @@ public async Task Test_BlockLambda_ReturnExplicitType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -49,7 +49,7 @@ public class OtherService : IService public async Task Test_BlockLambda_ReturnString() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -73,7 +73,7 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -106,7 +106,7 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); @@ -129,7 +129,7 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; var builder = LambdaApplication.CreateBuilder(); @@ -144,7 +144,7 @@ public async Task Test_BlockLambda_TypeCast() => await GeneratorTestHelpers.Verify( """ using System; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -175,7 +175,7 @@ public async Task Test_BlockLambda_NoTypeInfo_TypeCast() => await GeneratorTestHelpers.Verify( """ using System; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -207,7 +207,7 @@ await GeneratorTestHelpers.Verify( """ using System; using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -236,7 +236,7 @@ public interface IService public async Task Test_BlockLambda_ReturnImplicitNullable() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -264,7 +264,7 @@ public async Task Test_BlockLambda_StreamResponse() => await GeneratorTestHelpers.Verify( """ using System.IO; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -284,7 +284,7 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using Amazon.Lambda.Core; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -321,7 +321,7 @@ public async Task Test_BlockLambda_ReturnTaskString() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs index 44bae29c..648a77dd 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs @@ -7,7 +7,7 @@ public async Task Test_ExpressionLambda_MainOverload_NoOp() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -28,7 +28,7 @@ await GeneratorTestHelpers.Verify( using System.IO; using System.Threading.Tasks; using Amazon.Lambda.Core; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -46,7 +46,7 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_NoOutput() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -64,7 +64,7 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_ReturnString() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -82,7 +82,7 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_ReturnNullablePrimitive() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -99,7 +99,7 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_NoInput_ReturnGenericObject() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -120,7 +120,7 @@ record Data(string Message); public async Task Test_ExpressionLambda_InputDi_Async() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -146,7 +146,7 @@ public async Task Test_ExpressionLambda_InputDi_AsyncAndAwait() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -172,7 +172,7 @@ public async Task Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDi await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; using MyNamespace; @@ -207,7 +207,7 @@ public async Task Test_ExpressionLambda_ReturnExplicitType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -242,7 +242,7 @@ public class OtherService : IService public async Task Test_ExpressionLambda_NullableInput_ReturnImplicitNullable() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -264,7 +264,7 @@ public interface IService public async Task Test_ExpressionLambda_NullableInput_ReturnExplicitNullable() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -290,7 +290,7 @@ await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; using Amazon.Lambda.Core; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -328,7 +328,7 @@ public async Task Test_ExpressionLambda_Async_ReturnExplicitTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -346,7 +346,7 @@ public async Task Test_ExpressionLambda_ReturnExplicitTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -367,7 +367,7 @@ public async Task Test_ExpressionLambda_AsksForCancellationToken() => await GeneratorTestHelpers.Verify( """ using System.Threading; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -386,7 +386,7 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using Amazon.Lambda.Core; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -405,7 +405,7 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using Amazon.Lambda.Core; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -423,7 +423,7 @@ public async Task Test_ExpressionLambda_InputStream() => await GeneratorTestHelpers.Verify( """ using System.IO; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -441,7 +441,7 @@ await GeneratorTestHelpers.Verify( public async Task Test_ExpressionLambda_ExplicitVoid() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs index 861fffa5..960e179f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/KeyedServiceVerifyTests.cs @@ -6,7 +6,7 @@ public class KeyedServiceVerifyTests public async Task Test_KeyedService_StringAndEnumKeys() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -50,7 +50,7 @@ public class Service : IService public async Task Test_KeyedService_IntAndLongKeys() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -83,7 +83,7 @@ public class Service : IService public async Task Test_KeyedService_SmallIntegerTypes() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -121,7 +121,7 @@ public class Service : IService public async Task Test_KeyedService_UnsignedIntegerTypes() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -159,7 +159,7 @@ public class Service : IService public async Task Test_KeyedService_FloatingPointTypes() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -195,7 +195,7 @@ public class Service : IService public async Task Test_KeyedService_OtherTypes() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs index 140d0675..f4ba93ca 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs @@ -6,7 +6,7 @@ public class OnInitVerifyTests public async Task Test_OnInit_BaseMethodCall() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -30,7 +30,7 @@ public async Task Test_OnInit_ExplicitReturnTypeAsync() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -52,7 +52,7 @@ public async Task Test_OnInit_NoInput_NoOutput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -71,7 +71,7 @@ public async Task Test_OnInit_NoInput_ReturnBool() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -90,7 +90,7 @@ public async Task Test_OnInit_NoInput_ReturnTaskBool() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -109,7 +109,7 @@ public async Task Test_OnInit_NoInput_ReturnAsyncBool() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -128,7 +128,7 @@ public async Task Test_OnInit_NoInput_ReturnNotExpectedType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -147,7 +147,7 @@ public async Task Test_OnInit_NoInput_ReturnNotExpectedTypeTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -166,7 +166,7 @@ public async Task Test_OnInit_NoInput_ReturnNotExpectedTypeAsync() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -185,7 +185,7 @@ public async Task Test_OnInit_PrimitiveInput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -209,7 +209,7 @@ public async Task Test_OnInit_NullableValueAndReferenceInputs() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -239,7 +239,7 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -275,7 +275,7 @@ public async Task Test_OnInit_MultipleCalls() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -316,7 +316,7 @@ public async Task Test_OnInit_MethodHandler_NoDi() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -343,7 +343,7 @@ public async Task Test_OnInit_MethodHandler_AsyncAndDi() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -375,7 +375,7 @@ public async Task Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType() await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs index c84f7abe..98a0e8ef 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs @@ -6,7 +6,7 @@ public class OnShutdownVerifyTests public async Task Test_OnShutdown_BaseMethodCall() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -30,7 +30,7 @@ public async Task Test_OnShutdown_NoInput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -52,7 +52,7 @@ public async Task Test_OnShutdown_NoInput_ReturnUnexpectedType() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -74,7 +74,7 @@ public async Task Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -96,7 +96,7 @@ public async Task Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -118,7 +118,7 @@ public async Task Test_OnShutdown_PrimitiveInput() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -142,7 +142,7 @@ public async Task Test_OnShutdown_NullableValueAndReferenceInputs() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -172,7 +172,7 @@ await GeneratorTestHelpers.Verify( """ using System.Threading; using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -208,7 +208,7 @@ public async Task Test_OnShutdown_MultipleCalls() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -248,7 +248,7 @@ public interface IService public async Task Test_OnShutdown_BlockLambda_ReturnsImplicitVoid() => await GeneratorTestHelpers.Verify( """ - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; using System; diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs index 1edc412e..a47c5b83 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/StaticMethodVerifyTests.cs @@ -7,7 +7,7 @@ public async Task Test_MethodHandler_NoInput_NoOutput() => await GeneratorTestHelpers.Verify( """ using System; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -32,7 +32,7 @@ public async Task Test_MethodHandler_BlockBody_InputDiKeyedServices() => await GeneratorTestHelpers.Verify( """ using Amazon.Lambda.Core; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -69,7 +69,7 @@ public async Task Test_MethodHandler_BlockBody_TypeCast_Static() => await GeneratorTestHelpers.Verify( """ using System; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -92,7 +92,7 @@ public async Task Test_MethodHandler_BlockBody_TypeCast() => await GeneratorTestHelpers.Verify( """ using System; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -118,7 +118,7 @@ public async Task Test_MethodHandler_TypeCast_ExtraParentheses() => await GeneratorTestHelpers.Verify( """ using System; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -141,7 +141,7 @@ public async Task Test_MethodHandler_ReturnTask() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -166,7 +166,7 @@ public async Task Test_MethodHandler_ReturnTaskString() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -191,7 +191,7 @@ public async Task Test_MethodHandler_Async_ReturnTaskString() => await GeneratorTestHelpers.Verify( """ using System.Threading.Tasks; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; @@ -216,7 +216,7 @@ public async Task Test_MethodHandler_AsyncVoid() => await GeneratorTestHelpers.Verify( """ using System; - using MinimalLambda.Core; + using MinimalLambda; using MinimalLambda.Builder; using Microsoft.Extensions.Hosting; diff --git a/tests/MinimalLambda.UnitTests/GlobalUsings.cs b/tests/MinimalLambda.UnitTests/GlobalUsings.cs index def360d6..e413bfc8 100644 --- a/tests/MinimalLambda.UnitTests/GlobalUsings.cs +++ b/tests/MinimalLambda.UnitTests/GlobalUsings.cs @@ -3,8 +3,8 @@ global using AutoFixture.Xunit3; global using AwesomeAssertions; global using JetBrains.Annotations; +global using MinimalLambda; global using MinimalLambda.Builder; -global using MinimalLambda.Core; global using MinimalLambda.Options; global using MinimalLambda.Runtime; global using NSubstitute; diff --git a/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj b/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj index c8822ae3..caf6b611 100644 --- a/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj +++ b/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj @@ -30,6 +30,6 @@ - + From c456ec98225df881810d0597c24798fbe052cdc1 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 11:56:37 -0500 Subject: [PATCH 14/25] refactor(core): clean up unused build target references and redundant global usings - Removed unused `build/MinimalLambda.targets` and associated references from the project file. - Deleted redundant global `MinimalLambda` using directives in `GlobalUsings.cs`. --- src/MinimalLambda.Abstractions/GlobalUsings.cs | 2 -- src/MinimalLambda/MinimalLambda.csproj | 9 --------- ...{MinimalLambda.Core.targets => MinimalLambda.targets} | 0 3 files changed, 11 deletions(-) rename src/MinimalLambda/build/{MinimalLambda.Core.targets => MinimalLambda.targets} (100%) diff --git a/src/MinimalLambda.Abstractions/GlobalUsings.cs b/src/MinimalLambda.Abstractions/GlobalUsings.cs index aa15939a..3847e967 100644 --- a/src/MinimalLambda.Abstractions/GlobalUsings.cs +++ b/src/MinimalLambda.Abstractions/GlobalUsings.cs @@ -1,4 +1,2 @@ -global using MinimalLambda; -global using MinimalLambda; global using MinimalLambda.Builder; global using MinimalLambda.Options; diff --git a/src/MinimalLambda/MinimalLambda.csproj b/src/MinimalLambda/MinimalLambda.csproj index 3f2d0d19..d5f03d8e 100644 --- a/src/MinimalLambda/MinimalLambda.csproj +++ b/src/MinimalLambda/MinimalLambda.csproj @@ -21,15 +21,6 @@ - - - - diff --git a/src/MinimalLambda/build/MinimalLambda.Core.targets b/src/MinimalLambda/build/MinimalLambda.targets similarity index 100% rename from src/MinimalLambda/build/MinimalLambda.Core.targets rename to src/MinimalLambda/build/MinimalLambda.targets From d7e757f54461d338f67ce6ea947b01497cb51b33 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 12:23:28 -0500 Subject: [PATCH 15/25] feat(source-generators): add Scriban templates for handler generation - Introduced `GenericHandler.scriban` for generating generic handler extensions. - Added `MapHandler.scriban` to support mapping of lambda handlers with event/response features. - Created `InterceptsLocationAttribute.scriban` for method-level interception metadata generation. - Updated `.gitignore` to properly exclude temporary and environment-specific files. - Modified `HandlerInfoExtractor.cs` to adapt to the `MinimalLambda` namespace changes. --- .gitignore | 2 +- .../Extractors/HandlerInfoExtractor.cs | 6 +- .../Templates/GenericHandler.scriban | 55 ++++++++++++++ .../InterceptsLocationAttribute.scriban | 26 +++++++ .../Templates/MapHandler.scriban | 76 +++++++++++++++++++ 5 files changed, 159 insertions(+), 6 deletions(-) create mode 100644 src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban create mode 100644 src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban create mode 100644 src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban diff --git a/.gitignore b/.gitignore index e03b3d9e..8008209d 100644 --- a/.gitignore +++ b/.gitignore @@ -70,7 +70,7 @@ nunit-*.xml # temp files used for dev **/Temp*.cs -**/Temp*/ +**/Temp/ **/*.env diff --git a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs index 865d15bc..41306e4a 100644 --- a/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs +++ b/src/MinimalLambda.SourceGenerators/SyntaxProviders/Extractors/HandlerInfoExtractor.cs @@ -39,11 +39,7 @@ is not IInvocationOperation { Name: "Builder", ContainingNamespace: - { - Name: "Host", - ContainingNamespace: - { Name: "AwsLambda", ContainingNamespace.IsGlobalNamespace: true }, - }, + { Name: "MinimalLambda", ContainingNamespace.IsGlobalNamespace: true }, }, } targetOperation || targetOperation.TargetMethod.ContainingAssembly.Name != "MinimalLambda" diff --git a/src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban b/src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban new file mode 100644 index 00000000..94b5de5f --- /dev/null +++ b/src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban @@ -0,0 +1,55 @@ +namespace MinimalLambda.Generated +{ + using System; + using System.CodeDom.Compiler; + using System.Runtime.CompilerServices; + using System.Threading; + using System.Threading.Tasks; + using Microsoft.Extensions.DependencyInjection; + using MinimalLambda.Builder; + + {{ generated_code_attribute }} + file static class GeneratedLambda{{ name }}BuilderExtensions + { + {{~ for call in calls ~}} + // Location: {{ call.location.display_location }} + [InterceptsLocation({{ call.location.version }}, "{{ call.location.data }}")] + internal static {{ call.target_type }} {{ name }}Interceptor{{ for.index }}{{ call.generic_parameters }}( + this {{ call.target_type }} application, + Delegate handler + ) + { + var castHandler = ({{ call.handler_signature }})handler; + + return application.{{ name }}({{ name }}); + + {{ if call.should_await ~}} async {{ end ~}}{{ call.wrapper_return_type }} {{ name }}(IServiceProvider serviceProvider, CancellationToken cancellationToken) + { + {{~ if call.has_any_keyed_service_parameter ~}} + if (serviceProvider.GetService() is not IServiceProviderIsKeyedService) + { + throw new InvalidOperationException($"Unable to resolve service referenced by {nameof(FromKeyedServicesAttribute)}. The service provider doesn't support keyed services."); + } + {{~ end ~}} + {{~ for handler_arg in call.handler_args ~}} + // {{ handler_arg.string }} + var arg{{ for.index }} = {{ handler_arg.assignment }}; + {{~ end ~}} + {{ if call.should_return_response ~}} var response = {{ end }}{{ if call.should_await ~}} await {{ end ~}} castHandler.Invoke({{ for arg in call.handler_args }}arg{{ for.index }}{{ if !for.last }}, {{ end }}{{ end }}); + {{~ if call.should_return_response ~}} + {{~ if call.should_wrap_response ~}} + return Task.FromResult(response); + {{~ else ~}} + return response; + {{~ end ~}} + {{~ else if call.default_return_value != null ~}} + return {{ call.default_return_value }}; + {{~ end ~}} + } + } + {{~ if !for.last ~}} + + {{~ end ~}} + {{~ end ~}} + } +} \ No newline at end of file diff --git a/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban b/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban new file mode 100644 index 00000000..3802eca8 --- /dev/null +++ b/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously + +#nullable enable + +namespace System.Runtime.CompilerServices +{ + using System.CodeDom.Compiler; + + {{ generated_code_attribute }} + [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] + file sealed class InterceptsLocationAttribute : Attribute + { + public InterceptsLocationAttribute(int version, string data) + { + } + } +} diff --git a/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban b/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban new file mode 100644 index 00000000..bc59f36e --- /dev/null +++ b/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban @@ -0,0 +1,76 @@ +namespace MinimalLambda.Generated +{ + using System; + using System.CodeDom.Compiler; + using System.Runtime.CompilerServices; + using System.Threading.Tasks; + using MinimalLambda.Builder; + using MinimalLambda; + using Microsoft.Extensions.DependencyInjection; + + {{ generated_code_attribute }} + file static class GeneratedLambdaInvocationBuilderExtensions + { + private const string EventFeatureProviderKey = "__EventFeatureProvider"; + private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; + + {{~ for call in map_handler_calls ~}} + // Location: {{ call.location.display_location }} + [InterceptsLocation({{ call.location.version }}, "{{ call.location.data }}")] + internal static ILambdaInvocationBuilder MapHandlerInterceptor{{ for.index }}( + this ILambdaInvocationBuilder application, + Delegate handler + ) + { + var castHandler = ({{ call.handler_signature }})handler; + + application.Handle(InvocationDelegate); + {{~ if call.is_event_feature_required ~}} + + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) + application.Properties[EventFeatureProviderKey] = application + .Services.GetRequiredService() + .Create<{{ call.input_event.type }}>(); + {{~ end ~}} + {{~ if call.is_response_feature_required ~}} + + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) + application.Properties[ResponseFeatureProviderKey] = application. + Services.GetRequiredService() + .Create<{{ call.output_response.response_type }}>(); + {{~ end ~}} + + return application; + + {{ if call.should_await ~}} async {{ end ~}}Task InvocationDelegate(ILambdaHostContext context) + { + {{~ if call.has_any_keyed_service_parameter ~}} + if (context.ServiceProvider.GetService() is not IServiceProviderIsKeyedService) + { + throw new InvalidOperationException($"Unable to resolve service referenced by {nameof(FromKeyedServicesAttribute)}. The service provider doesn't support keyed services."); + } + {{~ end ~}} + {{~ for handler_arg in call.handler_args ~}} + // {{ handler_arg.string }} + var arg{{ for.index }} = {{ handler_arg.assignment }}; + {{~ end ~}} + {{ if call.output_response != null; ~}} var response = {{ end }}{{ if call.should_await ~}} await {{ end ~}} castHandler.Invoke({{ for arg in call.handler_args }}arg{{ for.index }}{{ if !for.last }}, {{ end }}{{ end }}); + {{~ if call.output_response != null; ~}} + {{~ if call.output_response.response_is_stream ~}} + context.Features.GetRequired().ResponseStream = response; + {{~ else ~}} + if (context.Features.Get() is not IResponseFeature<{{ call.output_response.response_type }}> responseFeature) + { + throw new InvalidOperationException($"Response feature for type '{{ call.output_response.response_type }}' is not available in the collection."); + } + responseFeature.SetResponse(response); + {{~ end ~}} + {{~ end ~}} + {{~ if !call.should_await ~}} + return Task.CompletedTask; + {{~ end ~}} + } + } + {{~ end ~}} + } +} From 930f2cc3c52066f2efdc57651a1c26d98a29c0ba Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 12:24:52 -0500 Subject: [PATCH 16/25] refactor(source-generators): remove redundant trailing whitespace in Scriban templates - Cleaned up unnecessary trailing whitespace in `GenericHandler.scriban`. - Removed trailing whitespace in `InterceptsLocationAttribute.scriban`. - Fixed whitespace issues in `MapHandler.scriban` for improved readability. --- .../Templates/GenericHandler.scriban | 6 +++--- .../Templates/InterceptsLocationAttribute.scriban | 2 +- .../Templates/MapHandler.scriban | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban b/src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban index 94b5de5f..acfbb6f0 100644 --- a/src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban +++ b/src/MinimalLambda.SourceGenerators/Templates/GenericHandler.scriban @@ -7,7 +7,7 @@ namespace MinimalLambda.Generated using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using MinimalLambda.Builder; - + {{ generated_code_attribute }} file static class GeneratedLambda{{ name }}BuilderExtensions { @@ -20,9 +20,9 @@ namespace MinimalLambda.Generated ) { var castHandler = ({{ call.handler_signature }})handler; - + return application.{{ name }}({{ name }}); - + {{ if call.should_await ~}} async {{ end ~}}{{ call.wrapper_return_type }} {{ name }}(IServiceProvider serviceProvider, CancellationToken cancellationToken) { {{~ if call.has_any_keyed_service_parameter ~}} diff --git a/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban b/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban index 3802eca8..3f9877dd 100644 --- a/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban +++ b/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban @@ -14,7 +14,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - + {{ generated_code_attribute }} [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute diff --git a/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban b/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban index bc59f36e..8cc3e3a7 100644 --- a/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban +++ b/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban @@ -7,13 +7,13 @@ namespace MinimalLambda.Generated using MinimalLambda.Builder; using MinimalLambda; using Microsoft.Extensions.DependencyInjection; - + {{ generated_code_attribute }} file static class GeneratedLambdaInvocationBuilderExtensions { private const string EventFeatureProviderKey = "__EventFeatureProvider"; private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; - + {{~ for call in map_handler_calls ~}} // Location: {{ call.location.display_location }} [InterceptsLocation({{ call.location.version }}, "{{ call.location.data }}")] @@ -23,23 +23,23 @@ namespace MinimalLambda.Generated ) { var castHandler = ({{ call.handler_signature }})handler; - + application.Handle(InvocationDelegate); {{~ if call.is_event_feature_required ~}} - + if (!application.Properties.ContainsKey(EventFeatureProviderKey)) application.Properties[EventFeatureProviderKey] = application .Services.GetRequiredService() .Create<{{ call.input_event.type }}>(); {{~ end ~}} {{~ if call.is_response_feature_required ~}} - + if (!application.Properties.ContainsKey(ResponseFeatureProviderKey)) application.Properties[ResponseFeatureProviderKey] = application. Services.GetRequiredService() .Create<{{ call.output_response.response_type }}>(); {{~ end ~}} - + return application; {{ if call.should_await ~}} async {{ end ~}}Task InvocationDelegate(ILambdaHostContext context) From a0bbc1aec44fb0ef8ae8ef8fd3f747b159353795 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 12:27:19 -0500 Subject: [PATCH 17/25] refactor(source-generators): remove trailing whitespace in InterceptsLocationAttribute.scriban - Cleaned up unnecessary trailing whitespace for improved template readability. --- .../Templates/InterceptsLocationAttribute.scriban | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban b/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban index 3f9877dd..37a13190 100644 --- a/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban +++ b/src/MinimalLambda.SourceGenerators/Templates/InterceptsLocationAttribute.scriban @@ -15,7 +15,7 @@ namespace System.Runtime.CompilerServices { using System.CodeDom.Compiler; - {{ generated_code_attribute }} + {{ generated_code_attribute }} [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] file sealed class InterceptsLocationAttribute : Attribute { From 4aa3ca2cd2ffb651eccdd97973d320c9d843e535 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 12:38:35 -0500 Subject: [PATCH 18/25] refactor(tests): remove obsolete generated snapshot files - Deleted outdated `LambdaHandler.g.verified.cs` snapshots for test cases: - `ExpressionLambdaVerifyTests` - `OnInitVerifyTests` - `OnShutdownVerifyTests` - Cleaned up unnecessary snapshot files no longer in use. --- .../Templates/MapHandler.scriban | 2 +- ...llInputSources#LambdaHandler.g.verified.cs | 2 +- ...tring_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...eturn_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...eInfo_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...rnExplicitType#LambdaHandler.g.verified.cs | 2 +- ...plicitNullable#LambdaHandler.g.verified.cs | 2 +- ...a_ReturnString#LambdaHandler.g.verified.cs | 2 +- ...turnTaskString#LambdaHandler.g.verified.cs | 2 +- ...sTask_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...StreamResponse#LambdaHandler.g.verified.cs | 2 +- ...ambda_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...mKeyedServices#LambdaHandler.g.verified.cs | 2 +- ...cellationToken#LambdaHandler.g.verified.cs | 2 +- ...dLambdaContext#LambdaHandler.g.verified.cs | 2 +- ...bdaHostContext#LambdaHandler.g.verified.cs | 2 +- ...rnExplicitTask#LambdaHandler.g.verified.cs | 2 +- ..._ComplexOutput#LambdaHandler.g.verified.cs | 2 +- ...a_ExplicitVoid#LambdaHandler.g.verified.cs | 2 +- ..._InputDi_Async#LambdaHandler.g.verified.cs | 2 +- ..._AsyncAndAwait#LambdaHandler.g.verified.cs | 2 +- ...erentNamespace#LambdaHandler.g.verified.cs | 2 +- ...da_InputStream#LambdaHandler.g.verified.cs | 2 +- ...erializer_NoOp#LambdaHandler.g.verified.cs | 27 ------------------- ...nOverload_NoOp#LambdaHandler.g.verified.cs | 27 ------------------- ...Input_NoOutput#LambdaHandler.g.verified.cs | 2 +- ...nGenericObject#LambdaHandler.g.verified.cs | 2 +- ...lablePrimitive#LambdaHandler.g.verified.cs | 2 +- ...t_ReturnString#LambdaHandler.g.verified.cs | 2 +- ...plicitNullable#LambdaHandler.g.verified.cs | 2 +- ...plicitNullable#LambdaHandler.g.verified.cs | 2 +- ...rnExplicitTask#LambdaHandler.g.verified.cs | 2 +- ...rnExplicitType#LambdaHandler.g.verified.cs | 2 +- ...tingPointTypes#LambdaHandler.g.verified.cs | 2 +- ...IntAndLongKeys#LambdaHandler.g.verified.cs | 2 +- ...ice_OtherTypes#LambdaHandler.g.verified.cs | 2 +- ...llIntegerTypes#LambdaHandler.g.verified.cs | 2 +- ...ingAndEnumKeys#LambdaHandler.g.verified.cs | 2 +- ...edIntegerTypes#LambdaHandler.g.verified.cs | 2 +- ...dler_AsyncVoid#LambdaHandler.g.verified.cs | 2 +- ...turnTaskString#LambdaHandler.g.verified.cs | 2 +- ...iKeyedServices#LambdaHandler.g.verified.cs | 2 +- ...kBody_TypeCast#LambdaHandler.g.verified.cs | 2 +- ...ypeCast_Static#LambdaHandler.g.verified.cs | 2 +- ...Input_NoOutput#LambdaHandler.g.verified.cs | 2 +- ...ler_ReturnTask#LambdaHandler.g.verified.cs | 2 +- ...turnTaskString#LambdaHandler.g.verified.cs | 2 +- ...traParentheses#LambdaHandler.g.verified.cs | 2 +- ...BaseMethodCall#LambdaHandler.g.verified.cs | 27 ------------------- ...eturnTypeAsync#LambdaHandler.g.verified.cs | 4 +-- ...ler_AsyncAndDi#LambdaHandler.g.verified.cs | 4 +-- ...UnexpectedType#LambdaHandler.g.verified.cs | 4 +-- ...odHandler_NoDi#LambdaHandler.g.verified.cs | 4 +-- ..._MultipleCalls#LambdaHandler.g.verified.cs | 12 ++++----- ...Input_NoOutput#LambdaHandler.g.verified.cs | 4 +-- ...eturnAsyncBool#LambdaHandler.g.verified.cs | 4 +-- ...put_ReturnBool#LambdaHandler.g.verified.cs | 4 +-- ...otExpectedType#LambdaHandler.g.verified.cs | 4 +-- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 4 +-- ...pectedTypeTask#LambdaHandler.g.verified.cs | 4 +-- ...ReturnTaskBool#LambdaHandler.g.verified.cs | 4 +-- ...eferenceInputs#LambdaHandler.g.verified.cs | 4 +-- ...bleKindOfInput#LambdaHandler.g.verified.cs | 4 +-- ...PrimitiveInput#LambdaHandler.g.verified.cs | 4 +-- ...BaseMethodCall#LambdaHandler.g.verified.cs | 27 ------------------- ...nsImplicitVoid#LambdaHandler.g.verified.cs | 4 +-- ..._MultipleCalls#LambdaHandler.g.verified.cs | 12 ++++----- ...utdown_NoInput#LambdaHandler.g.verified.cs | 4 +-- ...UnexpectedType#LambdaHandler.g.verified.cs | 4 +-- ...ectedTypeAsync#LambdaHandler.g.verified.cs | 4 +-- ...pectedTypeTask#LambdaHandler.g.verified.cs | 4 +-- ...eferenceInputs#LambdaHandler.g.verified.cs | 4 +-- ...bleKindOfInput#LambdaHandler.g.verified.cs | 4 +-- ...PrimitiveInput#LambdaHandler.g.verified.cs | 4 +-- .../ExpressionLambdaVerifyTests.cs | 6 +++-- .../VerifyTests/OnInitVerifyTests.cs | 3 ++- .../VerifyTests/OnShutdownVerifyTests.cs | 3 ++- 77 files changed, 110 insertions(+), 214 deletions(-) delete mode 100644 tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs delete mode 100644 tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs delete mode 100644 tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs delete mode 100644 tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs diff --git a/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban b/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban index 8cc3e3a7..4d829209 100644 --- a/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban +++ b/src/MinimalLambda.SourceGenerators/Templates/MapHandler.scriban @@ -67,7 +67,7 @@ namespace MinimalLambda.Generated {{~ end ~}} {{~ end ~}} {{~ if !call.should_await ~}} - return Task.CompletedTask; + return Task.CompletedTask; {{~ end ~}} } } diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs index 0122487f..d98e066e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_AllInputSources#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(14,8) - [InterceptsLocation(1, "wCxh64raLv7JZxUcekz6bkIBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "VP2f+uiZdS+PotWEzQbiljsBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs index bdaf1004..766b7934 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_Async_ReturnTaskString_TypeCast#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "52YQ/UddFuGQH5asNzsp/L0AAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "RRgc5MNn+AL4pWTKQhrXsLYAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs index 6648adfc..0e2b0530 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoReturn_TypeCast#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "24NtoO22UPa+/C0ogM3RV+EAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "ng4qOHWnkJh4C4VlurOGMtoAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs index 98393ae5..a84f597d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_NoTypeInfo_TypeCast#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "jx1Tqmn1fJ3pftRGtSvbSsMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "uvqLvSSclxUXzwz2YmfzRrwAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 5f549626..ad101d36 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "kmm35a5GJaoqey+0CeV8vdMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "w4moLaByZsxXLuN4WecQp8wAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 0134f42d..8a4d7091 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(8,8) - [InterceptsLocation(1, "qgvWtxWrBmeBTRBtlT5A2LUAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "DqY8rinA+uHB6sl663XA8a4AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs index 73daccaa..cef6f817 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnString#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(8,8) - [InterceptsLocation(1, "SBl4e782DgMu+0FLfrzfUbUAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "4KtVaSPugK/Yn6yEqkiSkq4AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs index c3f17c39..bafd7788 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnTaskString#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(12,8) - [InterceptsLocation(1, "62ICm9hMTMkVRHJf7bEM0v4AAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "o/ULBbkPcz16o9tbQ0tOEPcAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs index 4cf67a46..0816cbf6 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_ReturnsTask_TypeCast#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "hQoB+WlSjNRKx1YwYlKZW70AAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "2aTdwJdHl473WaMveiNuirYAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs index d3d95d6d..d814c365 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_StreamResponse#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "6HO/UYhbMUo2aMF5OFFj3scAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "jPT53Ewh7xx9P9yb1DeyM8AAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs index 0b67b73b..b5b5f3b8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "0swNLwUGxn6gmcAxLw2VYcMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "SZ39GgPCyw+sAyqV7Y0MlLwAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs index b2fe013c..d331ced7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/BlockLambdaVerifyTests.Test_BlockLambda_TypeCast_InputFromKeyedServices#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(11,8) - [InterceptsLocation(1, "Uxt0NUyaj58kybSiao2f8REBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "2G3T5x4NjDpOFGweblm35AoBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs index ecd8d212..5556169d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationToken#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "IG1FKecgSQVVqxQ3PHQPeM0AAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "uuDt15jObMe1Qq8s3gllzMYAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs index 84f0b763..b5a09837 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaContext#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "wn/8VnbL6/5enHoptgINB+cAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "E0m79hZz+OhoP5DYhe70YeAAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs index 6a9612b7..9dcd01b5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_AsksForCancellationTokenAndLambdaHostContext#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "f2st4QpM87EqtO+5cVLplOcAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "FpwfFi8HLWXcIbdaQfstO+AAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs index 9c022541..11082dca 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_Async_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "cms2w+IHinDN9XOT4+diatMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "cT3iuq87IWiCDKzjFXbX3swAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs index 163f4137..9426fe5a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ComplexInput_ComplexOutput#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "YAIayk0naS2HI+NqiUzlmO0AAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "ixKezoN6SQ9ZJuIWXUEMnOYAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs index c4419c66..2f19755a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ExplicitVoid#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(11,8) - [InterceptsLocation(1, "S8za7TGX8LSwYna0cXthvuAAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "mCw0TmMoKLslRA4zotAzTtkAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs index 23f30847..6aa3fc24 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_Async#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "K/A2Yp4hzHbk21l61w6haLYAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "MM4MsQPkcbIYHWAtaye0xa8AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs index c8af7bc7..f9105d82 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "VH5MZQ3KsBJFkPsnivxIPdQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "gPwlNZ7yUMUE03RWPlHggc0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs index aa141340..fbb57fd5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputDi_AsyncAndAwait_EventAndResponseDifferentNamespace#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(11,8) - [InterceptsLocation(1, "2v0Mx0/EAUlNqfkx9U5JLucAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "8WhODzG6WGWPy7Q+FAmYNuAAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs index 6e63e861..6cc7aecb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_InputStream#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "EIytviO7ID8d+8z3oQ4Pu8cAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "kMEdRureGinS9vjuOg9cX8AAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs deleted file mode 100644 index a80f8bfe..00000000 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_DeserializerSerializer_NoOp#LambdaHandler.g.verified.cs +++ /dev/null @@ -1,27 +0,0 @@ -ο»Ώ//HintName: LambdaHandler.g.cs -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - -#nullable enable - -namespace System.Runtime.CompilerServices -{ - using System.CodeDom.Compiler; - - [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] - [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] - file sealed class InterceptsLocationAttribute : Attribute - { - public InterceptsLocationAttribute(int version, string data) - { - } - } -} diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs deleted file mode 100644 index a80f8bfe..00000000 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_MainOverload_NoOp#LambdaHandler.g.verified.cs +++ /dev/null @@ -1,27 +0,0 @@ -ο»Ώ//HintName: LambdaHandler.g.cs -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - -#nullable enable - -namespace System.Runtime.CompilerServices -{ - using System.CodeDom.Compiler; - - [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] - [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] - file sealed class InterceptsLocationAttribute : Attribute - { - public InterceptsLocationAttribute(int version, string data) - { - } - } -} diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs index e1f32701..fc457c5e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "YIbj7XiC2amhwIlyj2HW1bYAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "3CWFbmqnBB4YxhpsZbBulq8AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs index 1c51b127..ec9235fe 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnGenericObject#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(8,8) - [InterceptsLocation(1, "XdsFhkLY1aZYCRYD2HXHFrUAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "G4Om3+ihXcYexFMvnSQvJ64AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs index 8bba4384..05be05e2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnNullablePrimitive#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(8,8) - [InterceptsLocation(1, "fUFDCv62We6/lGMG9FpYS7UAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "JhcPD8PsJIdWe6XLFN10+a4AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs index 67faca17..a5f9ac70 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NoInput_ReturnString#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "Ta7Dv3cnwIzvY2JBRc5ijLYAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "in+uvLWWJ/AtKXn3ATT2fa8AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs index 1d50790e..b6338c5d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnExplicitNullable#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(8,8) - [InterceptsLocation(1, "xtIY1NRH4poO99GLmpoGnbUAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "EDNz6e5tefnWkx5Bq6QB3K4AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs index 3211f542..7f5a552e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_NullableInput_ReturnImplicitNullable#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(8,8) - [InterceptsLocation(1, "qtXEOV1k02+RkXoOA59GBrUAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "hQau9yVjg5Tk/d7+kjXPVa4AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs index e4632c8b..3a6e8de8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitTask#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "UWCFzECps5Zv/K6OoUlGmtMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "KJD4PMoAebDtIgB60tZNgswAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs index 9efb50b8..9086c67c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/ExpressionLambdaVerifyTests.Test_ExpressionLambda_ReturnExplicitType#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "4J9qyNm4aQaoE9yV4I7wUNMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "bLWvoKINhFpNDAVeDD/J9swAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs index 0a92314d..a6929d4c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_FloatingPointTypes#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(12,8) - [InterceptsLocation(1, "Zx6wWbKlfl6HcErqMOpfK2EBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "oOoX2Z8lm6heONKgRuSEMVoBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs index fbc7d69f..84c351ac 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_IntAndLongKeys#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(12,8) - [InterceptsLocation(1, "XD0eRdQJ2xwEO5+zwdJ8IV0BAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "UQNgECJiz6f37Kqrohi6T1YBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs index b70318a5..af67de00 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_OtherTypes#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(14,8) - [InterceptsLocation(1, "FPApiCPACeBSE0aOLeXmruQBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "hmegcgWk2t+EeA09rekjfN0BAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs index b8cf24b0..db0706ec 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_SmallIntegerTypes#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(13,8) - [InterceptsLocation(1, "N8+wyBYUokyoNUAIxBkzoqsBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "hw5rLqU36tq+UKKZjsYo+6QBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs index fb22f729..9e245e3c 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_StringAndEnumKeys#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(13,8) - [InterceptsLocation(1, "rMkFDEUYJ34h2/gSzQaFl7YBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "+h6TuNWWRrZ6456NGR3gY68BAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs index 2d853f08..8243d625 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/KeyedServiceVerifyTests.Test_KeyedService_UnsignedIntegerTypes#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(13,8) - [InterceptsLocation(1, "3eiN2asEW2/G+R1Aj4dbcqIBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "AxgJhn/c6EE+EjInktbZjJsBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs index 917de1a9..c4c248b5 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_AsyncVoid#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "z6sS8Y9yXWmqDTL/J/JyOsMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "KboCfbbG13nfDrp0SLg8M7wAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs index b4900f22..92ed4fe2 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_Async_ReturnTaskString#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "W6/BEm8FxiRW0gVV9g5fFtMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "ZkrKvKVefW15Q5g1yuxuRcwAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs index 15e43b88..1eecad0b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_InputDiKeyedServices#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(11,8) - [InterceptsLocation(1, "8oeVcVLGeqitmbmG/7HeZwABAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "b0D41RfIehIYSzpiKIsdyfkAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs index 233d5ba5..2cfd58fe 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "I4oSgX2EhCjJlUv+muXhcMMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "9iVXmQzdmOJRzQb10S6vbbwAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs index 1738ecbc..a36b2475 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_BlockBody_TypeCast_Static#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "MYd9JR07N7unKiyCLFng0cMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "WkNvIuTbAdwaZik4NmqZnLwAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs index bedc0ec0..0711fa78 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "FboZTyPPzSjZNNWYolhn08MAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "+Lz+jm6gwTdwCiVkSNzQ87wAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs index 38224fea..95f7b33b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTask#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "x4hOcx/Mdm3QPU6QMU8PCtMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "JJAuncCVlvzsQmF1nMYHRMwAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs index 55fb4a6d..529a3a25 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_ReturnTaskString#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "rezyXVdhsY66Ems4DFa9p9MAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "/Yux3FXySiMlCW6XCvraq8wAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs index a00edbe6..2b862a26 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/MethodHandlerVerifyTests.Test_MethodHandler_TypeCast_ExtraParentheses#LambdaHandler.g.verified.cs @@ -43,7 +43,7 @@ file static class GeneratedLambdaInvocationBuilderExtensions private const string ResponseFeatureProviderKey = "__ResponseFeatureProvider"; // Location: InputFile.cs(9,8) - [InterceptsLocation(1, "3PhYgT8MPlODZy+E9raU0cMAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "B3NwPy0yR+xRbgA9x8f/e7wAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaInvocationBuilder MapHandlerInterceptor0( this ILambdaInvocationBuilder application, Delegate handler diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs deleted file mode 100644 index a80f8bfe..00000000 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_BaseMethodCall#LambdaHandler.g.verified.cs +++ /dev/null @@ -1,27 +0,0 @@ -ο»Ώ//HintName: LambdaHandler.g.cs -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - -#nullable enable - -namespace System.Runtime.CompilerServices -{ - using System.CodeDom.Compiler; - - [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] - [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] - file sealed class InterceptsLocationAttribute : Attribute - { - public InterceptsLocationAttribute(int version, string data) - { - } - } -} diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs index 6c436ffe..c40732b9 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_ExplicitReturnTypeAsync#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "B75vzDHbMAaDhY3yPDqta9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "q1uiaF3q8+xYajQEZyxaiM0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs index 8fd937c4..e470c3e7 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDi#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "kxwv6MRO7ICWs0/b3FHQYdQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "GvWtmkGvhj2sJm4/rXiUGc0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -59,4 +59,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs index 6f277ac6..0645999b 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_AsyncAndDiAndReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "0/e3oTWVwerLdIUT9JSUddQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "8o56Zwu2oVW8FXpGxJSFvc0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -59,4 +59,4 @@ async Task OnInit(IServiceProvider serviceProvider, CancellationToken canc } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs index 3a42139d..0cbeee79 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MethodHandler_NoDi#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(12,8) - [InterceptsLocation(1, "J+znASUyU6XOeL5I7F4a2u4AAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "3ivf5JplhmGDGF7iXdWVSucAAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs index b63d39c8..56bbbaac 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_MultipleCalls#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "WS5xwmfdbttlkCDwmVN/4dQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "gOjUxL7brRqHQuY3oQ1zfc0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -56,9 +56,9 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati return response; } } - + // Location: InputFile.cs(15,8) - [InterceptsLocation(1, "WS5xwmfdbttlkCDwmVN/4RwBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "gOjUxL7brRqHQuY3oQ1zfRUBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor1( this ILambdaOnInitBuilder application, Delegate handler @@ -78,9 +78,9 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati return response; } } - + // Location: InputFile.cs(22,8) - [InterceptsLocation(1, "WS5xwmfdbttlkCDwmVN/4YEBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "gOjUxL7brRqHQuY3oQ1zfXoBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor2( this ILambdaOnInitBuilder application, Delegate handler @@ -101,4 +101,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs index d3059081..6c745345 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_NoOutput#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "DJFXn3qtRzPpemNQ7yH2j9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "muLM5AWLiyZcBDFwDjSMbc0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs index 4f92ceae..e10e3849 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnAsyncBool#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "/9UlP4Hk4OFxTvOz4lI3ztQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "itVOIXgsd2/a5q0mYhXydM0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs index c053504f..c188896d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnBool#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "bfzzWql3BD1qSjdb9bBzM9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "dCq2ERewPXxHvi/4iSh/m80AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs index c0efd4aa..3b79131d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedType#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "4+YRMciUNXwEwXhvIACxZ9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "7+o+H0MkQG+24GOQUPBdDs0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs index 755f95d7..6f5180f3 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeAsync#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "NcMerHwPBzsgxA7y/XPnH9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "pi9PolKCGMrmFvoC3ft/Oc0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ async Task OnInit(IServiceProvider serviceProvider, CancellationToken canc } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs index 9e619dfb..f5f0bdca 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnNotExpectedTypeTask#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "9fSKeCRgj7MIXk9wvEO289QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "Vg2L2eBzhOCM6KRY6cER2c0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ async Task OnInit(IServiceProvider serviceProvider, CancellationToken canc } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs index dd8651e5..f49bbb7e 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NoInput_ReturnTaskBool#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "CDEFUo2VYVYEIicqNdjtudQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "cTRqoX+dJLMMKMOCOmOufs0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index 93033de7..4d54b558 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "r7SIx1Ceo55ncYApA9O0wtQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "dsRnyqNCGlvINFkBECwmUs0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -61,4 +61,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index e85cd63f..5039e172 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(12,8) - [InterceptsLocation(1, "mD/AfkPVjS93ZD5vENLVJBwBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "s9lx/eNP9F4h61w7TOvQPRUBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -71,4 +71,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs index fcb1e336..c78843c8 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnInitVerifyTests.Test_OnInit_PrimitiveInput#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnInitBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "4H720O/JvOGs29mmtmYgitQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "8J01folJ0MDOTLxLNRx4fs0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnInitBuilder OnInitInterceptor0( this ILambdaOnInitBuilder application, Delegate handler @@ -61,4 +61,4 @@ Task OnInit(IServiceProvider serviceProvider, CancellationToken cancellati } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs deleted file mode 100644 index a80f8bfe..00000000 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BaseMethodCall#LambdaHandler.g.verified.cs +++ /dev/null @@ -1,27 +0,0 @@ -ο»Ώ//HintName: LambdaHandler.g.cs -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - -#nullable enable - -namespace System.Runtime.CompilerServices -{ - using System.CodeDom.Compiler; - - [GeneratedCode("MinimalLambda.SourceGenerators", "0.0.0")] - [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] - file sealed class InterceptsLocationAttribute : Attribute - { - public InterceptsLocationAttribute(int version, string data) - { - } - } -} diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs index 38cacb39..8d336389 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_BlockLambda_ReturnsImplicitVoid#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "JG45SVupAX32PicMEg4KYMQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "lPDnfssMibsxhX79gLd2lL0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs index 67925c12..44543c55 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_MultipleCalls#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "8z0FL9iGVp57G+1Z1fBD39QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "W852isYQO43ObWn6kxnU5s0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -56,9 +56,9 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation return response; } } - + // Location: InputFile.cs(15,8) - [InterceptsLocation(1, "8z0FL9iGVp57G+1Z1fBD3xcBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "W852isYQO43ObWn6kxnU5hABAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor1( this ILambdaOnShutdownBuilder application, Delegate handler @@ -78,9 +78,9 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation return response; } } - + // Location: InputFile.cs(22,8) - [InterceptsLocation(1, "8z0FL9iGVp57G+1Z1fBD34IBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "W852isYQO43ObWn6kxnU5nsBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor2( this ILambdaOnShutdownBuilder application, Delegate handler @@ -101,4 +101,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs index 5ed4309e..c41f0702 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "qjTMZJmT/ICwyqjvKYAro9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "F/zSODBMGX3Xez9u/iwpl80AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs index 673fa2e5..f463885d 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedType#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "xOmLseZGX64ZVN3IS0hGL9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "Cr7Neg3slUnAi5SjcvJU580AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -57,4 +57,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs index 3c41503b..6c047447 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeAsync#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "nxe3yEiiRmdYDNQcN1k3hdQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "YWaX0vtU1wLdNqf9cuGdFM0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -56,4 +56,4 @@ async Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancel } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs index ffd3c566..08fc3161 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NoInput_ReturnUnexpectedTypeTask#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "2tTPAN/rsaZuzGty9hzBK9QAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "12DeS9LwHN3iO8NwFisQBs0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -56,4 +56,4 @@ async Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancel } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs index 68aed159..9c14af0f 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_NullableValueAndReferenceInputs#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "UPiaK81+RguBpV3LlTD6qtQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "BGCXXs9bVPwLCAUaU8Kkds0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -61,4 +61,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs index d21beb8b..cf2fff7a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_OneOfEachPossibleKindOfInput#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(12,8) - [InterceptsLocation(1, "YiehluDLQPPtk+Ko8lbJChwBAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "ZhdnggwSuJq0NpRZew7QhhUBAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -71,4 +71,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs index da2e05d8..c3617add 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/OnShutdownVerifyTests.Test_OnShutdown_PrimitiveInput#LambdaHandler.g.verified.cs @@ -40,7 +40,7 @@ namespace MinimalLambda.Generated file static class GeneratedLambdaOnShutdownBuilderExtensions { // Location: InputFile.cs(10,8) - [InterceptsLocation(1, "QR3PHAM1SBBcUgDZGFYhBtQAAABJbnB1dEZpbGUuY3M=")] + [InterceptsLocation(1, "cuXlRiXWvhKK6Ao4rCbyic0AAABJbnB1dEZpbGUuY3M=")] internal static ILambdaOnShutdownBuilder OnShutdownInterceptor0( this ILambdaOnShutdownBuilder application, Delegate handler @@ -61,4 +61,4 @@ Task OnShutdown(IServiceProvider serviceProvider, CancellationToken cancellation } } } -} +} \ No newline at end of file diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs index 648a77dd..2c8efdad 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/ExpressionLambdaVerifyTests.cs @@ -18,7 +18,8 @@ await GeneratorTestHelpers.Verify( lambda.Handle(Task (ILambdaHostContext context) => Task.CompletedTask); await lambda.RunAsync(); - """ + """, + 0 ); [Fact] @@ -39,7 +40,8 @@ await GeneratorTestHelpers.Verify( lambda.Handle(Task (ILambdaHostContext context) => Task.CompletedTask); await lambda.RunAsync(); - """ + """, + 0 ); [Fact] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs index f4ba93ca..7dbb1bc1 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnInitVerifyTests.cs @@ -22,7 +22,8 @@ await GeneratorTestHelpers.Verify( ); await lambda.RunAsync(); - """ + """, + 0 ); [Fact] diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs index 98a0e8ef..21f93c92 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/VerifyTests/OnShutdownVerifyTests.cs @@ -22,7 +22,8 @@ await GeneratorTestHelpers.Verify( ); await lambda.RunAsync(); - """ + """, + 0 ); [Fact] From a40b6bd9c7e00acb64a7f9cd6ec25c3c6e1a7ac2 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 13:08:50 -0500 Subject: [PATCH 19/25] docs: emphasize Minimal API-style patterns for any Lambda trigger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update all major documentation to highlight the ASP.NET Core Minimal API coding pattern while clarifying this works for ANY Lambda trigger type: - Lead with 'If you know ASP.NET Core Minimal APIs, you already know MinimalLambda' - Add comparison table showing ASP.NET Core β†’ MinimalLambda equivalents - Reorder key features to lead with Minimal API Pattern - Clarify 'for any trigger' (SQS, SNS, Kinesis, S3, EventBridge, API Gateway, etc.) - Update package descriptions to be concise: 'Minimal API-style framework for AWS Lambda functions' - Emphasize this is about the coding PATTERN, not just HTTP/API events This makes it clear that MinimalLambda uses familiar ASP.NET Core coding patterns but works across all Lambda event sources. --- README.md | 54 +++++++++++++++++--------- docs/index.md | 10 ++--- package.json | 2 +- src/MinimalLambda/MinimalLambda.csproj | 2 +- src/MinimalLambda/README.md | 37 +++++++++++------- 5 files changed, 66 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 1b916c7c..3f9ab583 100644 --- a/README.md +++ b/README.md @@ -5,32 +5,50 @@ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=j-d-ha_minimal-lambda&metric=alert_status&token=9fb519975d91379dcfbc6c13a4bd4207131af6e3)](https://sonarcloud.io/summary/new_code?id=j-d-ha_minimal-lambda) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) -A modern .NET framework for building AWS Lambda functions using familiar .NET patterns. +**ASP.NET Core-style patterns for AWS Lambda** – Build Lambda functions (for any trigger) using the same clean, declarative patterns as ASP.NET Core Minimal APIs. > πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Overview -**minimal-lambda** is a .NET hosting framework that simplifies AWS Lambda development by following -idiomatic .NET patterns and best practices. Instead of writing boilerplate code to handle Lambda -events, context, and serialization, you get a clean, declarative API for defining Lambda handlers -with dependency injection (similar to minimal APIs), middleware support, and modern async/await -patterns. Built on the generic host from Microsoft.Extensions, it provides a .NET hosting experience -similar to ASP.NET Core but tailored specifically for Lambda. +**If you know ASP.NET Core Minimal APIs, you already know MinimalLambda.** + +MinimalLambda brings the clean, declarative coding style of ASP.NET Core Minimal APIs to AWS Lambda – for **any trigger type** (SQS, SNS, API Gateway, Kinesis, S3, EventBridge, and more): + +- **Same builder pattern**: `LambdaApplication.CreateBuilder()` β†’ `Build()` β†’ `RunAsync()` +- **Same dependency injection**: `builder.Services.AddScoped()` +- **Same handler mapping**: `lambda.MapHandler(...)` just like `app.MapGet(...)` +- **Same middleware pipeline**: `lambda.Use(...)` for cross-cutting concerns +- **Same foundation**: Built on `Microsoft.Extensions.Hosting` like ASP.NET Core + +Instead of writing boilerplate Lambda handlers, you get familiar .NET patterns with automatic dependency injection, proper scoped lifetimes, middleware support, and compile-time code generation for zero reflection overhead. ## Key Features -- **.NET Hosting Patterns** – Use middleware, builder pattern, and dependency injection (similar to - ASP.NET Core), with proper scoped lifetime management per invocation -- **Async-First Design** – Native support for async/await with proper Lambda timeout and - cancellation handling -- **Source Generators & Interceptors** – Compile-time code generation and method interception for - optimal performance -- **AOT Ready** – Support for Ahead-of-Time compilation for faster cold starts -- **Built-in Observability** – OpenTelemetry integration for distributed tracing -- **Flexible Handler Registration** – Simple, declarative API for mapping Lambda event types to - handlers -- **Minimal Runtime Overhead** – No unnecessary abstractions; efficient use of Lambda resources +- **Minimal API Pattern** – Map handlers with `lambda.MapHandler(...)` just like `app.MapGet()` in ASP.NET Core – clean, declarative, and intuitive +- **Dependency Injection** – Constructor and parameter injection using `Microsoft.Extensions.DependencyInjection` with proper scoped lifetimes per invocation +- **Middleware Pipeline** – Familiar `Use()` pattern for cross-cutting concerns like logging, validation, and error handling +- **Source Generated** – Compile-time code generation for zero reflection overhead and optimal performance +- **AOT Ready** – Native AOT compilation support for sub-100ms cold starts +- **Built-in Observability** – OpenTelemetry integration for distributed tracing and metrics +- **Type-Safe Envelopes** – Strongly-typed event wrappers for SQS, SNS, API Gateway, Kinesis, and more +- **Minimal Runtime Overhead** – Lightweight abstraction layer built on the same foundation as ASP.NET Core + +## From ASP.NET Core to Lambda + +If you're familiar with ASP.NET Core Minimal APIs, the transition to MinimalLambda is seamless: + +| ASP.NET Core Minimal API | MinimalLambda | +|---|---| +| `WebApplication.CreateBuilder()` | `LambdaApplication.CreateBuilder()` | +| `app.MapGet("/hello", ...)` | `lambda.MapHandler(...)` | +| `builder.Services.AddScoped()` | `builder.Services.AddScoped()` | +| `app.UseMiddleware()` | `lambda.UseMiddleware()` | +| `app.RunAsync()` | `lambda.RunAsync()` | +| `HttpContext` dependency injection | `ILambdaContext` dependency injection | +| Route parameters | `[Event]` attribute for event binding | + +The patterns are intentionally identical – if you know one, you know the other. ## Packages diff --git a/docs/index.md b/docs/index.md index d78c224c..7ba2df56 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,18 +2,16 @@ title: "" --- -# Build AWS Lambda Functions with .NET Hosting Patterns +# MinimalLambda: ASP.NET Core Patterns for Lambda [![Main Build](https://github.com/j-d-ha/minimal-lambda/actions/workflows/main-build.yaml/badge.svg)](https://github.com/j-d-ha/minimal-lambda/actions/workflows/main-build.yaml) [![codecov](https://codecov.io/gh/j-d-ha/minimal-lambda/graph/badge.svg?token=BWORPTQ0UK)](https://codecov.io/gh/j-d-ha/minimal-lambda) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=j-d-ha_minimal-lambda&metric=alert_status&token=9fb519975d91379dcfbc6c13a4bd4207131af6e3)](https://sonarcloud.io/summary/new_code?id=j-d-ha_minimal-lambda) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/j-d-ha/minimal-lambda/blob/main/LICENSE) -MinimalLambda is a lightweight hosting framework for .NET developers who want the comfort of ASP.NET -Core’s middleware, dependency injection, and lifecycle hooks inside AWS Lambda. Instead of wiring up -scopes, serializers, and cancellation tokens by hand, you map strongly typed handlers and let the -source-generated pipeline handle the plumbing. The result: less boilerplate, better testability, and -handlers that feel like the rest of your .NET codebase. +**If you know ASP.NET Core Minimal APIs, you already know MinimalLambda.** + +MinimalLambda brings the clean, declarative coding style of ASP.NET Core Minimal APIs to AWS Lambda – for **any event source** (SQS, SNS, API Gateway, Kinesis, S3, EventBridge, etc.). Use the same builder pattern, dependency injection, middleware pipeline, and handler mapping that you're familiar with from ASP.NET Core – but optimized for Lambda's execution model with source generation, proper scoped lifetimes, and automatic cancellation token handling. [Get Started](getting-started/index.md){ .md-button .md-button--primary } [Guides](guides/index.md){ .md-button } diff --git a/package.json b/package.json index 6d511461..34bd0ac7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "minimal-lambda", "version": "0.0.7", - "description": "MinimalLambda - Modern .NET framework for building AWS Lambda functions", + "description": "MinimalLambda - ASP.NET Core Minimal API-style patterns for any AWS Lambda trigger", "private": true, "devDependencies": { "@commitlint/cli": "^20.1.0", diff --git a/src/MinimalLambda/MinimalLambda.csproj b/src/MinimalLambda/MinimalLambda.csproj index d5f03d8e..6bfd281e 100644 --- a/src/MinimalLambda/MinimalLambda.csproj +++ b/src/MinimalLambda/MinimalLambda.csproj @@ -9,7 +9,7 @@ true MinimalLambda - .NET Host for AWS Lambda + Minimal API-style framework for AWS Lambda functions README.md MinimalLambda.Host diff --git a/src/MinimalLambda/README.md b/src/MinimalLambda/README.md index 28215bd1..2e36bec7 100644 --- a/src/MinimalLambda/README.md +++ b/src/MinimalLambda/README.md @@ -1,23 +1,34 @@ # MinimalLambda -Core framework for building AWS Lambda functions with dependency injection, middleware, and source -generation. +**ASP.NET Core Minimal API-style patterns for AWS Lambda** – Build Lambda functions for any trigger using familiar .NET patterns. > πŸ“š **[View Full Documentation](https://j-d-ha.github.io/minimal-lambda/)** ## Overview -A modern .NET framework for building AWS Lambda functions using familiar ASP.NET Core patterns. The -core runtime provides: - -- **Dependency Injection**: Built-in service container for managing application dependencies -- **Middleware Pipeline**: Request/response processing similar to ASP.NET Core middleware -- **Compile-time Code Generation**: Source generators reduce reflection overhead and improve startup - performance -- **Native AOT Support**: Full compatibility with ahead-of-time compilation for minimal cold starts - and reduced package size -- **Lambda-Optimized Design**: Event handling, cold start reduction, and efficient resource - utilization tailored to AWS Lambda constraints +**If you know ASP.NET Core Minimal APIs, you already know MinimalLambda.** + +Write Lambda functions with the familiar minimal API pattern from ASP.NET Core: + +```csharp +var builder = LambdaApplication.CreateBuilder(); +builder.Services.AddScoped(); + +var lambda = builder.Build(); +lambda.MapHandler(([Event] string input, IMyService service) => + service.Process(input)); + +await lambda.RunAsync(); +``` + +The framework provides: + +- **Minimal API Pattern**: `lambda.MapHandler(...)` just like `app.MapGet()` – clean and declarative +- **Dependency Injection**: Same DI container as ASP.NET Core with proper scoped lifetimes per invocation +- **Middleware Pipeline**: Familiar `Use()` pattern for cross-cutting concerns +- **Source Generated**: Compile-time code generation for zero reflection overhead +- **Native AOT Ready**: Full AOT support for sub-100ms cold starts +- **Lambda-Optimized**: Automatic cancellation tokens, timeout handling, and efficient resource use ## Installation From 74b8f336b3bf12a4d55e2bd396262ecc7780c761 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 13:15:40 -0500 Subject: [PATCH 20/25] refactor(project): update interceptor namespaces and remove unused properties - Updated `InterceptorsNamespaces` to include `MinimalLambda.Generated` instead of `MinimalLambda`. - Removed unused `RootNamespace` property from `MinimalLambda.csproj`. - Cleaned up unnecessary empty `` in `MinimalLambda.Example.HelloWorld.csproj`. --- .../MinimalLambda.Example.Events.csproj | 2 +- .../MinimalLambda.Example.HelloWorld.csproj | 3 +-- .../MinimalLambda.Example.HelloWorldAot.csproj | 2 +- .../MinimalLambda.Example.Lifecycle.csproj | 2 +- .../MinimalLambda.Example.OpenTelemetry.csproj | 2 +- src/MinimalLambda/MinimalLambda.csproj | 1 - 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj index 66abeee7..33a8f73e 100644 --- a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj +++ b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj @@ -11,7 +11,7 @@ true true - $(InterceptorsNamespaces);MinimalLambda + $(InterceptorsNamespaces);MinimalLambda.Generated Lambda.Host.Example.Events false false diff --git a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj index acd6b89d..70b54fd5 100644 --- a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj +++ b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj @@ -11,11 +11,10 @@ true true - $(InterceptorsNamespaces);MinimalLambda + $(InterceptorsNamespaces);MinimalLambda.Generated Lambda.Host.Example.HelloWorld false - full bootstrap true - $(InterceptorsNamespaces);MinimalLambda + $(InterceptorsNamespaces);MinimalLambda.Generated Lambda.Host.Example.HelloWorldAot false diff --git a/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj index 2579ae1e..6df39b83 100644 --- a/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj +++ b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj @@ -11,7 +11,7 @@ true true - $(InterceptorsNamespaces);MinimalLambda + $(InterceptorsNamespaces);MinimalLambda.Generated false diff --git a/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj index 32162698..14eda7b7 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj +++ b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj @@ -12,7 +12,7 @@ true - $(InterceptorsNamespaces);MinimalLambda + $(InterceptorsNamespaces);MinimalLambda.Generated false diff --git a/src/MinimalLambda/MinimalLambda.csproj b/src/MinimalLambda/MinimalLambda.csproj index 6bfd281e..62170951 100644 --- a/src/MinimalLambda/MinimalLambda.csproj +++ b/src/MinimalLambda/MinimalLambda.csproj @@ -11,7 +11,6 @@ MinimalLambda Minimal API-style framework for AWS Lambda functions README.md - MinimalLambda.Host From 55a82a4e00787e60766a4ca3791e0ca0d91ed22a Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 13:20:44 -0500 Subject: [PATCH 21/25] docs: standardize package descriptions across all projects Update all package Description tags to be concise and follow industry patterns: - MinimalLambda: 'Minimal API-style framework for AWS Lambda functions' - MinimalLambda.Abstractions: 'Core abstractions for MinimalLambda' - MinimalLambda.OpenTelemetry: 'OpenTelemetry integration for MinimalLambda' - All envelope packages: 'Strongly-typed [EventSource] event envelopes' This provides clear, consistent metadata for NuGet package listings. --- .../MinimalLambda.Envelopes.Alb.csproj | 2 +- .../MinimalLambda.Envelopes.ApiGateway.csproj | 2 +- .../MinimalLambda.Envelopes.CloudWatchLogs.csproj | 2 +- .../MinimalLambda.Envelopes.Kafka.csproj | 2 +- .../MinimalLambda.Envelopes.Kinesis.csproj | 2 +- .../MinimalLambda.Envelopes.KinesisFirehose.csproj | 2 +- .../MinimalLambda.Envelopes.Sns.csproj | 2 +- .../MinimalLambda.Envelopes.Sqs.csproj | 2 +- .../MinimalLambda.Abstractions.csproj | 2 +- .../MinimalLambda.OpenTelemetry.csproj | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj b/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj index 9f719404..2da41e1e 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.Alb - Strongly-typed Application Load Balancer Models for AWS Lambda + Strongly-typed Application Load Balancer event envelopes README.md diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj index 1d4cf67c..98c6f1f4 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.ApiGateway - Strongly-typed API Gateway Models AWS Lambda + Strongly-typed API Gateway event envelopes README.md diff --git a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj index 259c5c75..48307564 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.CloudWatchLogs - Strongly-typed CloudWatch Logs Models AWS Lambda + Strongly-typed CloudWatch Logs event envelopes README.md diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj index 990fc000..69172b80 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.Kafka - Strongly-typed Kafka Models AWS Lambda + Strongly-typed Kafka event envelopes README.md MinimalLambda.Envelopes.Kafka diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj index 71169200..c97d519f 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.Kinesis - Strongly-typed Kinesis Models AWS Lambda + Strongly-typed Kinesis event envelopes README.md diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj index 55e9a18b..e11173c5 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.KinesisFirehose - Strongly-typed Kinesis Firehose Models AWS Lambda + Strongly-typed Kinesis Firehose event envelopes README.md diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj b/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj index 31a28ca1..969d1454 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.Sns - Strongly-typed SNS Models for AWS Lambda + Strongly-typed SNS event envelopes README.md diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj b/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj index e5f35371..a5b7b798 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Envelopes.Sqs - Strongly-typed SQS Models AWS Lambda + Strongly-typed SQS event envelopes README.md diff --git a/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj b/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj index 14787edf..a31489df 100644 --- a/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj +++ b/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj @@ -9,7 +9,7 @@ true MinimalLambda.Abstractions - Abstractions for .NET Host for AWS Lambda + Core abstractions for MinimalLambda README.md diff --git a/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj b/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj index 667a954c..a34277e2 100644 --- a/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj +++ b/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj @@ -9,7 +9,7 @@ true MinimalLambda.OpenTelemetry - OpenTelemetry for .NET Host for AWS Lambda + OpenTelemetry integration for MinimalLambda README.md From 10016917348282a51ad6200b01daef1213e8e0d0 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 13:22:19 -0500 Subject: [PATCH 22/25] docs: update XML documentation comment to remove 'AWS Lambda Host' reference --- src/MinimalLambda/Builder/LambdaApplicationBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MinimalLambda/Builder/LambdaApplicationBuilder.cs b/src/MinimalLambda/Builder/LambdaApplicationBuilder.cs index 74c1ae93..f8405bfd 100644 --- a/src/MinimalLambda/Builder/LambdaApplicationBuilder.cs +++ b/src/MinimalLambda/Builder/LambdaApplicationBuilder.cs @@ -17,7 +17,7 @@ namespace MinimalLambda.Builder; -/// A builder for configuring and constructing an AWS Lambda Host application. +/// A builder for configuring and constructing a Lambda application. /// /// /// The is used to configure services, logging, From 7cd1f7cd96e26ebc0d134a9313c5c3a95093c54d Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 13:31:06 -0500 Subject: [PATCH 23/25] refactor(project): replace `Lambda.Host` references with `MinimalLambda` Updated across multiple files to align with the updated naming convention: - Adjusted `RootNamespace` in project files to use `MinimalLambda`. - Updated `AWS_LAMBDA_FUNCTION_NAME` values in launch settings for consistency. - Changed documentation references in `CLAUDE.md` and `CONTRIBUTING.md` to reflect the new naming. This ensures consistency throughout the project following namespace changes. --- CLAUDE.md | 2 +- CONTRIBUTING.md | 4 ++-- .../MinimalLambda.Example.Events.csproj | 2 +- .../MinimalLambda.Example.HelloWorld.csproj | 2 +- .../Properties/launchSettings.json | 2 +- .../MinimalLambda.Example.HelloWorldAot.csproj | 2 +- .../Properties/launchSettings.json | 6 +++--- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index ad5c946e..5c304134 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -3,7 +3,7 @@ ## GENERAL - Repo link: https://github.com/j-d-ha/minimal-lambda -- GitHub Project Name: Lambda.Host Development +- GitHub Project Name: MinimalLambda Development - All code in this project is designed to run on AWS Lambda or generate code that will then be run on AWS Lambda. - When writing PRs, ALWAYS use `./.github/pull_request_template.md` as the template for the PR. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 852e0874..a5021eb3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing to MinimalLambda -Thank you for your interest in contributing to the AWS Lambda Host project! This document provides guidelines and instructions for contributing. +Thank you for your interest in contributing to the MinimalLambda project! This document provides guidelines and instructions for contributing. ## Table of Contents @@ -372,4 +372,4 @@ By contributing to this project, you agree that your contributions will be licen --- -**Thank you for contributing to AWS Lambda Host!** πŸš€ +**Thank you for contributing to MinimalLambda!** πŸš€ diff --git a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj index 33a8f73e..9dc53ef2 100644 --- a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj +++ b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj @@ -12,7 +12,7 @@ true $(InterceptorsNamespaces);MinimalLambda.Generated - Lambda.Host.Example.Events + MinimalLambda.Example.Events false false diff --git a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj index 70b54fd5..0b7656ab 100644 --- a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj +++ b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj @@ -12,7 +12,7 @@ true $(InterceptorsNamespaces);MinimalLambda.Generated - Lambda.Host.Example.HelloWorld + MinimalLambda.Example.HelloWorld false diff --git a/examples/MinimalLambda.Example.HelloWorld/Properties/launchSettings.json b/examples/MinimalLambda.Example.HelloWorld/Properties/launchSettings.json index 9f3c9991..62ea7d9a 100644 --- a/examples/MinimalLambda.Example.HelloWorld/Properties/launchSettings.json +++ b/examples/MinimalLambda.Example.HelloWorld/Properties/launchSettings.json @@ -8,7 +8,7 @@ "DOTNET_ENVIRONMENT": "Development", "AWS_LAMBDA_LOG_FORMAT": "JSON", "AWS_LAMBDA_LOG_LEVEL": "DEBUG", - "AWS_LAMBDA_FUNCTION_NAME": "Lambda-Host-Example-HelloWorld" + "AWS_LAMBDA_FUNCTION_NAME": "MinimalLambda-Example-HelloWorld" } } } diff --git a/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj index c1b157a7..83de0610 100644 --- a/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj +++ b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj @@ -20,7 +20,7 @@ bootstrap true $(InterceptorsNamespaces);MinimalLambda.Generated - Lambda.Host.Example.HelloWorldAot + MinimalLambda.Example.HelloWorldAot false diff --git a/src/MinimalLambda.SourceGenerators/Properties/launchSettings.json b/src/MinimalLambda.SourceGenerators/Properties/launchSettings.json index d582ff80..dafb0ebf 100644 --- a/src/MinimalLambda.SourceGenerators/Properties/launchSettings.json +++ b/src/MinimalLambda.SourceGenerators/Properties/launchSettings.json @@ -1,9 +1,9 @@ { "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "Lambda.Host.SourceGenerators": { + "MinimalLambda.SourceGenerators": { "commandName": "DebugRoslynComponent", - "targetProject": "../../examples/Lambda.Host.Example.HelloWorld/Lambda.Host.Example.HelloWorld.csproj" + "targetProject": "../../examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj" } } -} \ No newline at end of file +} From 06a36ec756c1791a97c5d29186289bbf3732f5c9 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 13:46:31 -0500 Subject: [PATCH 24/25] refactor(tests): clean up unused global usings in unit tests - Removed redundant global `MinimalLambda` and `MinimalLambda.Options` usings. - Simplified `GlobalUsings.cs` for improved clarity and maintainability. --- tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs b/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs index 0dd9008e..02d205b2 100644 --- a/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/GlobalUsings.cs @@ -2,9 +2,6 @@ global using AutoFixture.Xunit3; global using AwesomeAssertions; global using JetBrains.Annotations; -global using MinimalLambda; -global using MinimalLambda; global using MinimalLambda.Builder; -global using MinimalLambda.Options; global using NSubstitute; global using Xunit; From a54442a8397e29128341f8138c096e165cb23234 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Thu, 11 Dec 2025 14:05:46 -0500 Subject: [PATCH 25/25] feat(source-generators): add `TemplateHelper` for embedding and parsing Scriban templates - Introduced `TemplateHelper` class to load templates from embedded resources. - Added error handling for missing or invalid template resources. - Updated `.gitignore` to refine exclusion of temporary `.cs` files. --- .gitignore | 2 +- .../TemplateHelper.cs | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 src/MinimalLambda.SourceGenerators/TemplateHelper.cs diff --git a/.gitignore b/.gitignore index 8008209d..b22c2a4b 100644 --- a/.gitignore +++ b/.gitignore @@ -69,7 +69,7 @@ nunit-*.xml /docs/claude/** # temp files used for dev -**/Temp*.cs +**/Temp.cs **/Temp/ **/*.env diff --git a/src/MinimalLambda.SourceGenerators/TemplateHelper.cs b/src/MinimalLambda.SourceGenerators/TemplateHelper.cs new file mode 100644 index 00000000..0cb4a1a7 --- /dev/null +++ b/src/MinimalLambda.SourceGenerators/TemplateHelper.cs @@ -0,0 +1,54 @@ +using System; +using System.IO; +using System.Linq; +using System.Reflection; +using Scriban; + +namespace MinimalLambda.SourceGenerators; + +internal static class TemplateHelper +{ + /// Loads a Scriban template from embedded resources + /// Name of the template file (without .scriban extension) + /// Parsed Scriban template + internal static Template LoadTemplate(string relativePath) + { + var baseName = Assembly.GetExecutingAssembly().GetName().Name; + var templateName = relativePath + .TrimStart('.') + .Replace(Path.DirectorySeparatorChar, '.') + .Replace(Path.AltDirectorySeparatorChar, '.'); + + var manifestTemplateName = Assembly + .GetExecutingAssembly() + .GetManifestResourceNames() + .FirstOrDefault(x => x!.EndsWith(templateName, StringComparison.InvariantCulture)); + + if (string.IsNullOrEmpty(manifestTemplateName)) + throw new InvalidOperationException( + $"Did not find required resource ending in '{templateName}' in assembly '{baseName}'." + ); + + using var stream = Assembly + .GetExecutingAssembly() + .GetManifestResourceStream(manifestTemplateName); + if (stream == null) + throw new FileNotFoundException( + $"Template '{relativePath}' not found in embedded resources." + ); + + using var reader = new StreamReader(stream); + var templateContent = reader.ReadToEnd(); + + var template = Template.Parse(templateContent); + if (template.HasErrors) + { + var errors = string.Join("; ", template.Messages.Select(m => m.ToString())); + throw new InvalidOperationException( + $"Template parsing errors in '{templateName}': {errors}" + ); + } + + return template; + } +}