I have a labeling extension that I originally wrote for ArcMap (works fine). I then tested it in ArcGIS Engine (works fine too). Now I need to get it working in an ArcGIS Server context. But, some functionality will be slightly different in that environment. How can you tell if you are running in ArcMap, Engine, or Server?
I'm also looking for a bomb-proof way of getting the ActiveView or the FocusMap property in either of the three environments. Ideas?