// *** Methods *** public AppLaunchDelegate Build() { AppLaunchDelegate appLaunchDelegate = context => Task.FromResult(false); foreach (var middleware in _middlewareList.Reverse <Func <AppLaunchDelegate, AppLaunchDelegate> >()) { appLaunchDelegate = middleware(appLaunchDelegate); } return(appLaunchDelegate); }
public void Configure(AppLaunchDelegate next, MockMiddlewareOptions options) { _next = next; _options = options; }