Пример #1
0
        private void InitialiseMiddyContext(ILambdaContext context)
        {
            if (MiddyContext == null)
            {
                MiddyContext = new MiddyNetContext(context);
            }
            else
            {
                MiddyContext.AttachToLambdaContext(context);
            }

            MiddyContext.AdditionalContext.Clear(); //  Given that the instance is reused, we need to clean the dictionary.
        }
Пример #2
0
 protected abstract Task <TRes> Handle(TReq lambdaEvent, MiddyNetContext context);