Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active December 4, 2016 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/be5fa6e7f38a7855f8aed2960e089158 to your computer and use it in GitHub Desktop.
Save guitarrapc/be5fa6e7f38a7855f8aed2960e089158 to your computer and use it in GitHub Desktop.
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