Ejemplo n.º 1
0
        public LambdaInvocationRequest(string functionName, LambdaInvocationType invocationType, string payloadFilePath)
        {
            if (string.IsNullOrWhiteSpace(functionName))
            {
                throw new InvalidOperationException($"The function name cannot be empty");
            }

            FunctionName    = functionName;
            InvocationType  = invocationType;
            PayloadFilePath = payloadFilePath;
        }
Ejemplo n.º 2
0
        public InvocationType Convert(LambdaInvocationType invocationType)
        {
            switch (invocationType)
            {
            case LambdaInvocationType.Event:
                return(InvocationType.Event);

            case LambdaInvocationType.RequestResponse:
                return(InvocationType.RequestResponse);
            }
            throw new NotImplementedException($"The invocation type '{invocationType.ToString("G")}' is not currently supported.");
        }