public void Start() { string v_filename; string v_separator; v_filename = System.Reflection.Assembly.GetExecutingAssembly().Location; try { if (!System.IO.Directory.Exists("bin")) { System.IO.Directory.CreateDirectory("bin"); } if (System.Environment.OSVersion.Platform == System.PlatformID.Unix || System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) { v_separator = "/"; } else { v_separator = "\\"; } System.IO.File.Copy(v_filename, "bin" + v_separator + System.IO.Path.GetFileName(v_filename), true); } catch { } this.v_server = Spartacus.ThirdParty.WebServer.XSP.Server.Instantiate(new [] { "--applications", "/:.", "--port", this.v_port.ToString(), "--nonstop" }); }
public WebServer(int p_port) { this.v_port = p_port; this.v_server = null; }