You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- You can now shrink package sizes by utilizing the new Lambdajection Layer! For the time being, this is only available for those also using the Lambdajection Custom Runtime. Support for aws-hosted dotnetcore3.1 may be added in a future release.
3
+
- You can now shrink package sizes by utilizing the new Lambdajection Layer! For the time being, this is only available for those also using the Lambdajection Custom Runtime. Support for aws-hosted dotnetcore3.1 may be added in a future release.
4
+
- The "Run" method name can now be customized using the RunnerMethod property in the Lambda Attribute.
You can customize the name of the "Run" method via the
294
+
RunnerMethod property of `LambdaAttribute`.
295
+
293
296
### 4.9. Custom Runtimes
294
297
295
298
Lambdajection can be used with custom runtimes starting in v0.5.0-beta2, that way you can use a newer version of .NET as soon as it comes out, even if it is not an LTS release.
yieldreturnParseStatement($"await using var host = new LambdaHost<{className}, {inputType}, {returnType}, {context.StartupTypeName}, LambdajectionConfigurator, {configFactory}>();");
@@ -134,7 +136,8 @@ public MemberDeclarationSyntax GenerateMainMethod()
134
136
135
137
IEnumerable<StatementSyntax>GenerateBody()
136
138
{
137
-
yieldreturnParseStatement($"using var wrapper = HandlerWrapper.GetHandlerWrapper((Func<{inputType}, ILambdaContext, Task<{returnType}>>)Run, new DefaultLambdaJsonSerializer());");
139
+
varrunnerMethodName=context.RunnerMethodName;
140
+
yieldreturnParseStatement($"using var wrapper = HandlerWrapper.GetHandlerWrapper((Func<{inputType}, ILambdaContext, Task<{returnType}>>){runnerMethodName}, new DefaultLambdaJsonSerializer());");
138
141
yieldreturnParseStatement($"using var bootstrap = new LambdaBootstrap(wrapper);");
0 commit comments