我有下一个密码
public async Task Run(
[ServiceBusTrigger("links",
Connection = "serviceBus")]
string myQueueItem, ILogger log)
{
if (myQueueItem == "test")
{
//if an item of string type is equal to test, just remove this item from Q.
log.LogInformation("inside if");
}
// if successfull pass if just keep going
log.LogInformation("outside");
log.LogInformation($"Received message from bus: {myQueueItem}");
}
如果块i可以从Q中移除项目,那么在块内部如何操作?
1条答案
按热度按时间csbfibhn1#
使用LockToken我删除了特定的消息。