당신은 GDI +가 지금 Azurewebsites에 사용할 수 없기 때문에이 솔루션은 Azurewebsites에서 작동하지 않습니다 알다시피, 그 IIS
System.Diagnostics;
var processStartInfo = new ProcessStartInfo
{
CreateNoWindow = true,
RedirectStandardOutput = true,
RedirectStandardInput = true,
UseShellExecute = false,
Arguments = "your.js plus any arguments here",
FileName = "path/to/phantomjs.exe"
};
var process = new Process
{
StartInfo = processStartInfo,
EnableRaisingEvents = true
};
//pipe the output
process.OutputDataReceived += (sender, args) => {
//args.Data has output from phantomjs
};
process.Start();
process.BeginOutputReadLine();
process.WaitForExit(20000);
process.CancelOutputRead();
에 의해 관리.
감사합니다. Ammaroff, 다른 게시물에서이 문제를 읽었습니다. 나는 자바 (highchart 사이트)와 함께 해결책을 보았으나 매우 스케일 아웃 솔루션이 아니며 프로세스 관리 만 풀링한다. 클라우드에서 관리하기가 더 복잡합니다. S. 다시 한 번 감사드립니다! – MetalMad