如何具有用于Web作业处理的基于配置的队列名称? [英] How to have a configuration based queue name for web job processing?

查看:53
本文介绍了如何具有用于Web作业处理的基于配置的队列名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Webjob应用程序,可以使用以下方法来处理运行良好的ServiceBus队列:

I have a webjob app to process a ServiceBus queue, which runs fine, with the following method:

public static void ProcessQueueMessage([ServiceBusTrigger("myQueueName")] BrokeredMessage message, TextWriter log)

但是,我希望能够在不重新编译的情况下更改队列名称,例如根据配置appsetting可以完成吗?

However, I would like to be able to change the queue name without recompiling, according for example to a configuration appsetting, can it be done?

推荐答案

我从

这篇关于如何具有用于Web作业处理的基于配置的队列名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆