2017-04-11 45 views

回答

1

根據this post它是在輪轂的水平配置爲經由RegistrationTtl property

var namespaceManager = NamespaceManager.CreateFromConnectionString("connectionstring"); 
NotificationHubDescription hub = namespaceManager.GetNotificationHub("foo"); 
hub.RegistrationTtl = TimeSpan.MaxValue; 
namespaceManager.UpdateNotificationHub(hub); 
相關問題