public static IHttpServer Create(IPAddress address, int port, string prefix, bool requireNotHttp, Microsoft.Research.Peloponnese.ILogger logger) { if (!requireNotHttp) { IHttpServer server = SystemWrapper.Create(address, port, prefix, logger); if (server != null) { return(server); } } return(NHServer.Create(address, port, prefix, logger)); }
public static IHttpServer Create(IPAddress address, int port, string prefix, ILogger logger) { NHServer server = new NHServer(logger); if (server.Initialize(address, port, prefix)) { return(server); } else { return(null); } }