I am building my very first desktop application using c# and visual studio! It currently logs into an org through the Partner WSDL / SOAP API.
But I have no idea how to license it! Ideally, I would like to query the production organization id for comparison to some sort of licence-checking server.
However, I have no idea how to find it if the application is logged into a sandbox instead of production!