事件时,火托管服务的部署插槽变化(SWAP VIP) [英] Events that fire when a hosted service's deployment slot changes (Swap VIP)

查看:100
本文介绍了事件时,火托管服务的部署插槽变化(SWAP VIP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序依赖于部署插槽一些设置。我明白了这样的设计决策招致的惩罚和影响,但最终决定权,并适用于我们的情况。

我想知道的是的当你改变了什么事件触发托管服务的部署插槽(如果有的话)?在<一个href=\"http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleenvironmenttopologychange.aspx\"相对=nofollow> RoleEnvironmentTopologyChange 看起来正确的,但在decsription它说,它激发的情况下发生变化时的数量,因此这不是我要找的。

我之所以需要它是无效持有该插槽缓存 - 即到,获取具体部署插槽的数据解析进一步通过


解决方案

有没有事件贵宾交换期间的火灾。如果你想,当你交换到改变一些东西,我会建议作出配置设置和不断变化的,你做掉了。

I have a few settings in my applications that rely on the deployment slot. I understand the penalties and implications such a design decision incurs, but the decision is final and works for our case.

What I would like to know is what events fire when you change a hosted service's Deployment Slot (if any)? The RoleEnvironmentTopologyChange looked correct, but in the decsription it says it fires when the number of instances changes, so that's not what I'm looking for.

The reason I need it is to invalidate the cache that is holding the slot - that is further passed on to the resolver that gets the data specific to the deployment slot.

解决方案

There's no event that fires during a VIP swap. If you want to change something when you swap, I would recommend making a config setting and changing that before you do the swap.

这篇关于事件时,火托管服务的部署插槽变化(SWAP VIP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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