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); }
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); }