public Server(IFileStorage fileStorage, ushort port) { FileStorage = fileStorage; this.port = port; routes = new List <IRoute>(); handlers = new List <IRequestHandler> { new RouteRequestHandler(), new FileRequestHandler(), new FileNotFoundRequestHandler() }; DefaultPath = "index.htm"; MimeTypeProvider = new DefaultMimeTypeProvider(); LoggerFactory = new Log4netLoggerFactory(); ActionFactory = new ActionFactory(); }
public Server(IFileStorage fileStorage, ushort port) { FileStorage = fileStorage; this.port = port; routes = new List<IRoute>(); handlers = new List<IRequestHandler> { new RouteRequestHandler(), new FileRequestHandler(), new FileNotFoundRequestHandler() }; DefaultPath = "index.htm"; MimeTypeProvider = new DefaultMimeTypeProvider(); LoggerFactory = new Log4netLoggerFactory(); ActionFactory = new ActionFactory(); }