我有一个简单的网络作业托管在 azure 上,作为持续运行的作业。
我需要传递 token 值作为输入,如何使用连续网络作业来实现此目的?
static void Main(string[] args)
{
try
{
Console.WriteLine("Goto Login url" + kite.GetLoginURL());
Console.WriteLine("Enter request token: ");
string requestToken = Console.ReadLine();
最佳答案
我认为不可能使用 webjobs(连续作业),除非你有一些正在运行的 web 服务器,你可以在其中触发请求(例如 sinatra、aspnet core 等)。您需要将 Azure Functions 与 HTTP 触发器结合使用。然后您可以在查询字符串或请求正文中传递 token 并执行您需要执行的操作。
关于c# - 有什么办法可以将输入插入到连续运行的网络作业中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64337129/