Search code examples
azure-notificationhub

Any API works like Microsoft.Azure.NotificationHubs and can be used in .NETFramework 4.5.2 project?


I plan to use the Microsoft.Azure.NotificationHubs to push notification through Azure notification hub in backend service of an existed project. However, I found that the project is using .NETFramework 4.5.2. As the document stated, the SDK has dependecy to .NETFramework 4.6.1 or higher.

Since the existed project is already developed well and problems could appear if I upgrade. Any other solutions please?


Solution

  • Due to you don't want to upgrade to .Net Framework 4.6.1 or higher. You can use REST API, create HttpClient in your existed project to send Http Request.

    (notificationhubs)REST API methods

    You can use HttpHelper in my sample code.

    enter image description here