In my Visual Studio project I've created a WebJob that runs on a schedule (once a week) to dump logs from the db to blob storage. This works great but all the code is in a ManualTrigger method that has a queue message as a required output. I really have no need of this message so I'd rather not create it and have the queue sitting there growing with unused messages.
Am I understanding this correctly or is this queue message for something else and automatically removed? I can't seem to find any documentation on the generated ManualTrigger method.
My ManualTrigger code looks like:
[NoAutomaticTrigger]
public static void ManualTrigger(TextWriter log, int value, [Queue("queue")] out string message)
{
... Log Dump Code ...
message = "Unused message";
}
Thanks, Jason
如果您不需要队列输出,请不要使用它:)只需删除最后一个参数,您应该会很好
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.