Azure 服务总线规则名称最大长度

Azure service bus rule name maximum length

我正在尝试发布类型为 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. And if you ever check the AddRule method中列出的基本配额,你会发现如果超过50个字符就会抛出异常。

如果您坚持该功能,您可以前往 Azure 反馈网站提交此请求。或投票支持现有建议。你可以投票支持这个建议:Increase the maximum length of the name of a topic subscription