Last active
December 4, 2016 20:30
-
-
Save guitarrapc/be5fa6e7f38a7855f8aed2960e089158 to your computer and use it in GitHub Desktop.
AWS Lambda Local Execuction Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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