我有一个服务,调用一个进程来创建一个文件(该进程是一个winform),在我的服务中,我想一旦进程创建了文件就读取该文件,如何在我的服务和进程之间进行通信以检查文件是否已正确创建。
Process.Start(assemblyPath, xsdFileName + " " + fileName + " " + exportPDFFileName);
//here I need to make sure that the file has been created correctly
return new MemoryStream(File.ReadAllBytes(exportPDFFileName));
感谢你的帮助,Bilel。