title: Is it possible to know which of .NET code created a temporary file?
body: <p>I'm reviewing a Windows Azure web role VM an I see that the temporary folder of the process running the role payload contains several dozen temporary files of zero length created some long time ago. This is a potential problem for me because if files are created and left over in uncontrolled manner the role gets trashed at some point.</p>
  
  <p>I'm in full control of the payload code and there's good chance that those temporary files are created by the same process that runs the payload.</p>
  
  <p>Is it possible to intercept temporary files creation from C# code running in the same process as the process creating the files?</p>