I'm working on a "regular" C# WPF application (no UWP app), and I need to know whether I'm on a cellular connection. Cellular connection being both when using a simcard inside the device, or when using a hotspot from a mobile phone.
How can I achieve this?
Background: Since the application might download lots of data, I want the users to have a choice whether they'd like to avoid downloading on cellular connections or not)
Other SO questions: I've seen this question and this question, they're focusing on UWP functionality. Also this one, which is just focusing on the connection itself, rather then whether that's a cellular connection or not.