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. }
protected abstract Task <TRes> Handle(TReq lambdaEvent, MiddyNetContext context);