What is the best way to determine if my web application code is running in a Azure web role (or emulator)?
I need to configure a dependency injection container and do not want to take a dependency on any Azure specific assemblies unless I'm running in Azure.
Both answers to this question require referencing Azure specific assemblies which I'd like to prevent for my on-premise scenario.
Update: I'm really looking for something in the runtime environment that I can query from my web application code.