private static IHttpHandler CreateHttpHandler(IContext context, HandlerInfo handlerInfo) { IHttpHandler instance; if (handlerInfo.RequiresAuthentication) { var authenticationProvider = SimpleWeb.Configuration.Container.Get<IAuthenticationProvider>() ?? new DefaultAuthenticationProvider(); instance = new SimpleHttpHandler(context, handlerInfo); } else { instance = new SimpleHttpHandler(context, handlerInfo); } return instance; }
private static IHttpHandler CreateHttpHandler(IContext context, HandlerInfo handlerInfo) { var instance = new SimpleHttpHandler(context, handlerInfo); return instance; }