diff --git a/content/LambdaLocalRunner/.template.config/template.json b/content/LambdaLocalRunner/.template.config/template.json deleted file mode 100644 index 80af0b0..0000000 --- a/content/LambdaLocalRunner/.template.config/template.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "author": "EMG", - "classifications":[ - "EMG", "Lambda" - ], - "name": "[EMG] Lambda Local Runner", - "identity": "EMG.Templates.LambdaLocalRunner", - "groupIdentity": "EMG.Templates.LambdaLocalRunner.CSharp", - "shortName": "emg-lambda-local-runner", - "tags":{ - "language":"C#", - "type": "project" - }, - "sourceName": "LambdaLocalRunner", - "guids":[], - "preferNameDirectory": true, - "primaryOutputs": [ - { - "path": "./LambdaLocalRunner.csproj" - } - ] -} \ No newline at end of file diff --git a/content/LambdaLocalRunner/LambdaLocalRunner.csproj b/content/LambdaLocalRunner/LambdaLocalRunner.csproj deleted file mode 100644 index 17d0e84..0000000 --- a/content/LambdaLocalRunner/LambdaLocalRunner.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - netcoreapp2.0 - Host - latest - - - - - - - diff --git a/content/LambdaLocalRunner/Program.cs b/content/LambdaLocalRunner/Program.cs deleted file mode 100644 index 6eeac60..0000000 --- a/content/LambdaLocalRunner/Program.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Threading.Tasks; -using EMG.Lambda.LocalRunner; - -namespace LambdaLocalRunner -{ - class Program - { - static async Task Main(string[] args) - { - /* TODO */ - // - Add a project reference to the project containing your Lambda function - // - Uncomment one of the templates below according to your needs - // - Customize it so that it builds (input type, output type) - // - Make sure you are using the correct serializer - // - Make sure the port is not conflicting with other applications. If needed, customize it - // - Make sure the function is correctly recognized (you need to add a using statement) - - /* Asynchronous function, accepting a string, returning a string, using default port (5000) and default serializer */ - // await LambdaRunner.Create() - // .Receives() - // .Returns() - // .UsesAsyncFunction((function, input, context) => function.FunctionHandlerAsync(input, context)) - // .Build() - // .RunAsync(); - - /* Synchronous function, accepting a string, returning a string, using default port (5000) and custom serializer */ - // await LambdaRunner.Create() - // .UseSerializer(() => new MyCustomSerializer()) - // .Receives() - // .Returns() - // .UsesFunction((function, input, context) => function.FunctionHandler(input, context)) - // .Build() - // .RunAsync(); - - /* Asynchronous function, accepting a string with no result, using a custom port and default serializer */ - // await LambdaRunner.Create() - // .UsePort(5001) - // .Receives() - // .UsesAsyncFunctionWithNoResult((function, input, context) => function.FunctionHandlerAsync(input, context)) - // .Build() - // .RunAsync(); - - /* Synchronous function, accepting a string with no result, using a custom port and custom serializer */ - // await LambdaRunner.Create() - // .UsePort(5001) - // .UseSerializer(() => new MyCustomSerializer()) - // .Receives() - // .UsesFunctionWithNoResult((function, input, context) => function.FunctionHandler(input, context)) - // .Build() - // .RunAsync(); - } - } -}