Skip to content

Commit

Permalink
Update Release Notes and README (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
talenfisher authored Jan 5, 2021
1 parent 35b4ed3 commit fca1b1d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/releases/v0.6.0.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
New in v0.6.0:

- Upgraded Cythral.CloudFormation.BuildTasks to v0.4.2 for increased end-to-end test stability (these sometimes failed before due to base64 keys containing characters that are not safe for URLs).
- Upgraded AWSSDK.Core to 3.5.1.57
- Upgraded AWSSDK.KeyManagementService to 3.5.1
- Upgraded Microsoft.Extensions.DependencyInjection to 5.0.1
- Upgraded Amazon.Lambda.RuntimeSupport to 1.3.0

Also includes everything from the first 4 betas:

- Removed the ILambdaContext parameter. This is now accessible via constructor dependency injection instead.
- Adds a CancellationToken parameter to coordinate cancellation of child tasks. Forward this to any awaited calls in your Handle function.
- The "Run" method name can now be customized.
- A Lambda Layer containing Lambdajection and all its dependencies is now available! See the README for usage.

## Prerelease Links

https://github.com/cythral/lambdajection/releases/tag/v0.6.0-beta1
https://github.com/cythral/lambdajection/releases/tag/v0.6.0-beta2
https://github.com/cythral/lambdajection/releases/tag/v0.6.0-beta3
https://github.com/cythral/lambdajection/releases/tag/v0.6.0-beta4

## Whats next?
Please look forward to v0.7.0 in March, which will introduce functionality for Lambdajection-backed Custom Resources!
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Creates a new Options class to be injected into your Lambda as an `IOption<>`.
Writing the lambda is simple: Just define a public, partial class that contains a Handle method and annotate the class with the `Lambda` attribute. The `Lambda` attribute requires that you specify a startup class - more on this in the next step. You are not limited to an request/input parameter of type object - this can be any serializable value or reference type. Same goes for the return value, however the return value must be enclosed in a `Task`.

```cs
using System.Threading;
using System.Threading.Tasks;

using Amazon.Lambda.Core;
Expand All @@ -140,7 +141,7 @@ namespace Your.Namespace
this.yourService = yourService;
}

public Task<object> Handle(object request, ILambdaContext context)
public Task<object> Handle(object request, CancellationToken cancellationToken)
{
return new {
foo = request
Expand Down

0 comments on commit fca1b1d

Please sign in to comment.