Foy*_*rim 8 garbage-collection azure temporary-files asp.net-web-api azure-web-sites
在我的一个Azure Web App Web API应用程序中,我在Get方法中使用此代码创建临时文件
string path = Path.GetTempFileName();
// do some writing on this file. then read
var fileStream = File.OpenRead(path);
// then returning this stream as a HttpResponseMessage response
Run Code Online (Sandbox Code Playgroud)
我的问题是,在这样的托管环境中(不在VM中),我是否需要自己清除这些临时文件? Azure本身不应该清除那些临时文件吗?
| 归档时间: |
|
| 查看次数: |
1767 次 |
| 最近记录: |