向通知中心发送通知时,我收到以下异常:
Microsoft.ServiceBus.Messaging.QuotaExceededException: The remote server returned an error <403> Forbidden. The maximum number of Notification operations has been reached or exceeeded. Actual:33360, Max allowed: 33000..TrackingID55ccd1f7a791-4047-96fd-0d0be2278ff7_g7
关于如何解决这个问题有什么想法吗?
最佳答案
您应该记住的是,您使用 NotificationHubClient
执行的所有操作(不仅仅是发送通知)似乎都会添加到您的日常操作配额
.
每当客户端登录到我的 API 时,我就犯了不必要的注册更新的错误。
设备注册的有效期为 90 天,因此我不必进行任何更新,除非注册已经/即将过期。 (我确实将过期日期保存在服务器应用程序的用户表中,您可以从 RegistrationDescripton.ExpirationTime 获取该日期,以便了解何时进行注册更新)
关于exception - Azure 配额超出异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17860845/