Пример #1
0
 public MockRuntime(string handler, string body)
 {
     context  = new MockLambdaContext(handler, body);
     InitData = new InitData
     {
         Handler              = handler,
         InvokeId             = context.RequestId,
         SuppressUserCodeInit = false,
         ErrorCode            = null
     };
     invoked = false;
 }
Пример #2
0
 public MockRuntime(string handler, string body)
 {
     context  = new MockLambdaContext(handler, body);
     InitData = new InitData
     {
         Handler              = handler,
         InvokeId             = context.RequestId,
         SuppressUserCodeInit = true,
         ErrorCode            = null
     };
     invoked        = false;
     client.Timeout = Timeout.InfiniteTimeSpan;
 }