我有以下代码:
public static class PracticeFunction
{
[FunctionName("LearningAboutFunctions")]
public static void Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, ILogger log)
{
log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
using (var client = new WebClient())
{
client.DownloadFile("https://examplesite.co.uk/file.zip", "myfile.zip");
}
}
}
}
有没有一种方法可以打开 Zip 文件并提取内容而无需安装任何额外的 nuget 包?