Beispiel #1
0
        protected static FunctionRequestDelegate GetDelegateMainFunctionDelegate(Middleware.FunctionApplicationBuilder sut)
        {
            var mainFunctionDelegateField = sut.GetType().GetField("_mainFunctionDelegate", BindingFlags.NonPublic | BindingFlags.Instance);
            var mainFunctionDelegate      = mainFunctionDelegateField.GetValue(sut) as FunctionRequestDelegate;

            return(mainFunctionDelegate);
        }
Beispiel #2
0
        protected static IList <Func <FunctionRequestDelegate, FunctionRequestDelegate> > GetDelegateComponents(Middleware.FunctionApplicationBuilder sut)
        {
            var componentsField = sut.GetType().GetField("_components", BindingFlags.NonPublic | BindingFlags.Instance);
            var components      = componentsField.GetValue(sut) as IList <Func <FunctionRequestDelegate, FunctionRequestDelegate> >;

            return(components);
        }