问题描述
我已经在生产环境中创建了主题和订阅,现在必须启用 RequiresSession 现有订阅,而不会丢失数据.但这允许在创建时设置属性.
I have topics and subscription already been created in production.Now I have to enable RequiresSession for the existing Subscription without losing the data. But it is allowing to set the property while creating.
如何启用通过编码或通过Azure进行订阅的RequiresSession 门户网站或其他任何途径,而不会丢失生产中的任何数据?
How can I enable RequiresSession for a subscription either by coding or via Azure Portal or by any other appraoch without losing any data in production?
任何建议请
预先感谢.
推荐答案
如果启用此选项,并且您的应用程序不支持会话,则可以,可能会丢失数据.我提供了一些参考资料将此代码编码到您的解决方案中.
If you enable this and your application does not support sessions, then yes, there is a possibility of losing data. I have provided some references to code this into your solution.
SubscriptionDescription. RequiresSession属性
获取或设置一个值,该值指示预订是否支持会话的概念.
public bool RequiresSession { get; set; }
属性值
这篇关于如何在订阅中启用RequiresSession属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!