Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
AWS Lambda Local Execuction Sample
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SimpleClassFunction
{
public class Program
{
public static void Main(string[] args)
{
var test = new SampleClass
{
Str = "hogehoge",
StrArray = new[] { "hoge", "huga", "foo" },
};
var response = new Function().FunctionHandler(test, null);
}
}
}
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
},
"Amazon.Lambda.Core": "1.0.0*",
"Amazon.Lambda.Serialization.Json": "1.0.1",
"Amazon.Lambda.Tools": {
"type": "build",
"version": "1.0.0-preview1"
}
},
"tools": {
"Amazon.Lambda.Tools": "1.0.0-preview1"
},
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment