static void Main(string[] args) { EpsagonBootstrap.Bootstrap(useOpenTracingCollector: true); var invoker = new LambdaInvoker(); var responseTask = invoker.InvokeLambda(args[0]); Console.WriteLine($"Lambda Result: {responseTask}"); }
public static async Task <bool> Invoke(ILogger log, Context context) { var args = new SimpleFunctionArgs { Name = "ProjectBaseName" }; log.Information("Invoking lambda with args: {@args}", args); var result = await LambdaInvoker.Invoke <SimpleFunctionArgs, SimpleFunctionResult>(log, context, args, Name(context.Config)); log.Information("Lambda result: {@result}", result); return(true); }