c# - Scale out PhantomJs instances on Azure in .Net -


I am using HTTP server like PhantomJs. I have only one example and every request is done sequentially.

P> You can host your own ASP.NET application which uses the pretext. This will be the birthplace of the astrologer for each request, and will be managed by IIS.

  System.Diagnostics; Var processStartInfo = New ProcessStartInfo {CreateNoWindow = true, RedirectStandardOutput = true, RedirectStandardInput = true, UseShellExecute = false, argument = "your.js plus any arguments here", FileName = "path / to / phantomjs.exe"}; Var process = new process {StartInfo = processStartInfo, EnableRaisingEvents = true}; // Pipe Output Process OutputDataReqved + = (Sender, Args) = & gt; {//args.Data is produced from phakkamaj}; Process.start (); Process.BeginOutputReadLine (); Process.WaitForExit (20000); Process.CancelOutputRead ();   

As you know this solution will not work on ezour websites, because GDI + is currently disabled on Azur Websites.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -