我正在尝试发布 Dictionary<string,object>
类型的事件当我打电话 eventbus.Publish(@event)
我收到以下错误:
- InnerException {"Entity path 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' exceeds the '50' character limit. (Parameter 'ruleName')"} System.Exception {System.ArgumentOutOfRangeException}
是否可以更改 Azure 服务总线上规则名称的字符限制?或者有其他方法可以突破这个限制吗?
最佳答案
目前尚不可用。就像 Casey Crookston 所说,这是 Service Bus quotas 中列出的基本配额。 。如果您检查过 AddRule method ,你会发现超过50个字符就会抛出异常。
如果您坚持使用该功能,您可以访问 azure 反馈网站并提交此请求。或者投票支持现有的建议。您可以投票支持此建议:Increase the maximum length of the name of a topic subscription
关于c# - Azure 服务总线规则名称最大长度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59180725/