public static void UServer(this ICakeContext context, int port) { var current = new DirectoryInfo("./").FullName; var settings = new UServerSettings { Port = port, Path = current }; UServer(context, settings); }
public static void UServer(this ICakeContext context, UServerSettings settings) { var server = new UHttpServer(settings); server.Start(); while (Console.ReadLine() != "q") { } }
public UHttpServer(UServerSettings settings) { _settings = settings; }