Azure 通知中心注册生存时间
Azure Notification Hub registration Time To Live
默认情况下,注册 TTL 设置为生命周期(10,675,199 天)。
我该如何改变和控制它?
尚未在管理门户、.Net 描述、powershell 自动化脚本中找到线索。
根据this post it is configured on hub level via RegistrationTtl property:
var namespaceManager = NamespaceManager.CreateFromConnectionString("connectionstring");
NotificationHubDescription hub = namespaceManager.GetNotificationHub("foo");
hub.RegistrationTtl = TimeSpan.MaxValue;
namespaceManager.UpdateNotificationHub(hub);
默认情况下,注册 TTL 设置为生命周期(10,675,199 天)。 我该如何改变和控制它?
尚未在管理门户、.Net 描述、powershell 自动化脚本中找到线索。
根据this post it is configured on hub level via RegistrationTtl property:
var namespaceManager = NamespaceManager.CreateFromConnectionString("connectionstring");
NotificationHubDescription hub = namespaceManager.GetNotificationHub("foo");
hub.RegistrationTtl = TimeSpan.MaxValue;
namespaceManager.UpdateNotificationHub(hub);