如何使用 Azure Functions 而不是 WebJobs?
How to use Azure Functions instead of WebJobs?
我要迁移到 "App Service for Linux"。不幸的是,它不支持 WebJobs。 here 它说不会。它建议改用 Azure Functions.
我有一个没有触发器的连续应用程序。它应该总是 运行,像这样:
while (true)
{
// The logic
}
对于这样的应用程序,我应该如何使用 Azure Functions?
也许 Azure Functions 可能不适合您的场景,它最适合用于在某些事件后运行的代码,而不是总是用于 运行 代码。
看看 Hangfire,它可以在 Linux 上执行并允许你的场景:https://www.hangfire.io/
我要迁移到 "App Service for Linux"。不幸的是,它不支持 WebJobs。 here 它说不会。它建议改用 Azure Functions.
我有一个没有触发器的连续应用程序。它应该总是 运行,像这样:
while (true)
{
// The logic
}
对于这样的应用程序,我应该如何使用 Azure Functions?
也许 Azure Functions 可能不适合您的场景,它最适合用于在某些事件后运行的代码,而不是总是用于 运行 代码。
看看 Hangfire,它可以在 Linux 上执行并允许你的场景:https://www.hangfire.io/