public PushNotificationHandler() { WindowsAzureConfig windowsAzureConfig = this.GetWindowsAzureConfigInfo(); if (windowsAzureConfig != null) { hub = new NotificationHub(windowsAzureConfig.DevHubName, windowsAzureConfig.DevListenAccessConnectionString); } }
public WindowsAzureConfig GetWindowsAzureConfigInfo() { try { WindowsAzureConfig windowsAzureConfig = null; windowsAzureConfig = new WindowsAzureConfig() { DevHubName = "rx", DevListenAccessConnectionString = "Endpoint=sb://rxsystems.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=cOE4KMCoMdIBVlWjR0eRcjlv6+FakY0OOb2XJIeDxbI=", ProductionHubName = "ProductionHubName", ProductionListenAccessConnectionString = "ProductionListenAccessConnectionString" }; return(windowsAzureConfig); } catch (Exception ex) { throw ex; } }
public WindowsAzureConfig GetWindowsAzureConfigInfo() { try { WindowsAzureConfig windowsAzureConfig = null; windowsAzureConfig = new WindowsAzureConfig() { DevHubName = "rx", DevListenAccessConnectionString = "Endpoint=sb://rxsystems.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=cOE4KMCoMdIBVlWjR0eRcjlv6+FakY0OOb2XJIeDxbI=", ProductionHubName = "ProductionHubName", ProductionListenAccessConnectionString = "ProductionListenAccessConnectionString" }; return windowsAzureConfig; } catch (Exception ex) { throw ex; } }