我该怎么做每个实例Azure的工人角色配置? [英] How do I do per-instance Azure Worker-Role configuration?

查看:162
本文介绍了我该怎么做每个实例Azure的工人角色配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在需要部署3不同辅助角色但每个需要它自己的配置(用户名,密码等)连接到交易服务器。我不能跨实例共享凭据。

In need to deploy 3 different worker roles but each needs it's own configuration (user name, password, etc.) to connect to a trading server. I can't share the credentials across the instances.

如果有人知道如何做到这一点,我会很AP preciative!

If anyone knows how to accomplish this I would be very appreciative!

谢谢...

推荐答案

你的意思是你有3个实例1工作者角色?您应该切换到3工作者角色,而不是(在Visual Studio中不同的项目)。这使您可以单独配置每个工作者角色(双击在Azure项目的每个工作者角色,然后转到设置选项卡)。您共同code可在所有3个工作角色中引用的共享程序集。

Do you mean you have 1 Worker Role with 3 instances? You should switch to 3 Worker Roles instead (different projects in Visual Studio). This allows you to configure each Worker Role independently (double click each Worker Role in the Azure project and go to the settings tab). Your common code can be in a shared assembly referenced by all 3 Worker Roles.

这篇关于我该怎么做每个实例Azure的工人角色配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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