AwsLambda.Host.Abstractions 0.1.3

dotnet add package AwsLambda.Host.Abstractions --version 0.1.3
                    
NuGet\Install-Package AwsLambda.Host.Abstractions -Version 0.1.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AwsLambda.Host.Abstractions" Version="0.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AwsLambda.Host.Abstractions" Version="0.1.3" />
                    
Directory.Packages.props
<PackageReference Include="AwsLambda.Host.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AwsLambda.Host.Abstractions --version 0.1.3
                    
#r "nuget: AwsLambda.Host.Abstractions, 0.1.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AwsLambda.Host.Abstractions@0.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AwsLambda.Host.Abstractions&version=0.1.3
                    
Install as a Cake Addin
#tool nuget:?package=AwsLambda.Host.Abstractions&version=0.1.3
                    
Install as a Cake Tool

AwsLambda.Host.Abstractions

⚠️ Development Status: This project is actively under development and not yet production-ready. Breaking changes may occur in future versions. Use at your own discretion in production environments.

Core interfaces and delegates that define the aws-lambda-host framework contract. This package is typically used implicitly by AwsLambda.Host, but useful if you're building custom integrations, middleware, or extensions.

Packages

The framework is divided into focused packages:

Package NuGet Downloads
AwsLambda.Host NuGet Downloads
AwsLambda.Host.Abstractions NuGet Downloads
AwsLambda.Host.OpenTelemetry NuGet Downloads

Installation

Install via NuGet:

dotnet add package AwsLambda.Host.Abstractions

Or specify a version:

dotnet add package AwsLambda.Host.Abstractions --version <version>

Ensure your project uses C# 11 or later:


<PropertyGroup>
  <LangVersion>11</LangVersion>
  
</PropertyGroup>

Note: This package is typically included automatically when you use AwsLambda.Host. Direct installation is only necessary when building custom integrations or extensions.

Core Abstractions

ILambdaApplication

The main builder interface for configuring a Lambda application using a fluent pattern:

  • MapHandler() – Register the Lambda invocation handler
  • Use() – Add middleware to the pipeline
  • OnInit() – Register initialization handlers
  • OnShutdown() – Register shutdown handlers

See AwsLambda.Host for usage examples.

ILambdaHostContext

Encapsulates a single Lambda invocation:

  • Event – The deserialized Lambda event
  • Response – The handler's response to return
  • ServiceProvider – Access to the scoped DI container
  • Items – Key/value collection for invocation-scoped data
  • CancellationToken – Cancellation signal from Lambda timeout

Handler Delegates

LambdaInvocationDelegate

Task LambdaInvocationDelegate(ILambdaHostContext context)

Processes a Lambda invocation.

LambdaInitDelegate

Task<bool> LambdaInitDelegate(IServiceProvider services, CancellationToken cancellationToken)

Runs once during initialization. Return true to continue, false to abort.

LambdaShutdownDelegate

Task LambdaShutdownDelegate(IServiceProvider services, CancellationToken cancellationToken)

Runs once during shutdown for cleanup.

Lambda Lifecycle

The abstractions represent three Lambda execution phases:

  • InitLambdaInitDelegate runs once during function initialization
  • InvocationLambdaInvocationDelegate runs for each event
  • ShutdownLambdaShutdownDelegate runs once before termination

For implementation details and examples, see AwsLambda.Host.

Installation

Install via NuGet:

dotnet add package AwsLambda.Host.Abstractions

Or specify a version:

dotnet add package AwsLambda.Host.Abstractions --version <version>

Ensure your project uses C# 11 or later:


<PropertyGroup>
  <LangVersion>11</LangVersion>
  
</PropertyGroup>

Note: This package is typically included automatically when you use AwsLambda.Host. Direct installation is only necessary when building custom integrations or extensions.

Documentation

Contributing

Contributions are welcome! Please check the GitHub repository for contribution guidelines.

License

This project is licensed under the MIT License. See LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AwsLambda.Host.Abstractions:

Package Downloads
AwsLambda.Host

.NET Host for AWS Lambda

AwsLambda.Host.OpenTelemetry

OpenTelemetry for .NET Host for AWS Lambda

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.3 86 11/10/2025
0.1.2 78 11/10/2025
0.0.7-alpha.3 44 11/9/2025
0.0.7-alpha.2 39 11/9/2025
0.0.7-alpha.1 42 11/9/2025
0.0.6-alpha.1 125 11/6/2025
0.0.5-alpha.1 121 11/6/2025
0.0.4-alpha.3 129 11/2/2025
0.0.4-alpha.2 128 11/2/2025
0.0.4-alpha.1 130 11/2/2025
0.0.3-alpha.1 54 11/1/2025
0.0.2-alpha.10 131 10/30/2025
0.0.2-alpha.9 126 10/30/2025
0.0.2-alpha.8 128 10/30/2025
0.0.2-alpha.7 127 10/30/2025
0.0.2-alpha.6 119 10/30/2025
0.0.2-alpha.5 124 10/30/2025
0.0.2-alpha.3 120 10/30/2025
0.0.2-alpha.2 127 10/30/2025
0.0.2-alpha.1 131 10/29/2025
0.0.1-alpha.7 112 10/26/2025
0.0.1-alpha.6 107 10/26/2025