Can an application recognize whether it runs in a cloud or on a normal server?
If that is possible, I could automatically let the application deside wehere to store f.e. user pictures: IO or blob storage.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check the RoleManager.IsRoleManagerRunning property. This will be true if your app is running under Azure Fabric. Note however, that this can be the development fabric (the fabric that is running on your development machine during your dev phase) or the actual Azure cloud fabric.