Skip to content

Instantly share code, notes, and snippets.

@ignas-sakalauskas
Created June 7, 2020 11:03
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 ignas-sakalauskas/264054fbd0d4ae5a61751a029c65f577 to your computer and use it in GitHub Desktop.
Save ignas-sakalauskas/264054fbd0d4ae5a61751a029c65f577 to your computer and use it in GitHub Desktop.
InvokeLambdaSynchronously
var request = new InvokeRequest
{
FunctionName = "1-direct-invocation",
InvocationType = InvocationType.RequestResponse, // synchronous
Payload = "Your JSON payload"
};
var result = await client.InvokeAsync(request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment