How to determine which environment an application is running in

Home Page Forums BizTalk 2004 – BizTalk 2010 How to determine which environment an application is running in

Viewing 1 reply thread
  • Author
    Posts
    • #23533

      I want to email different people about status updates based on if the app is running on dev server or prod server. how can I accomplish this task?

      Thanks for any help

    • #23534

      If you get the ServerName thn you know in which environment that server is running in then you can set some string saying..DEV,QA,PROD etc..

      Like ..

          String machineName =  System.Environment.MachineName;

          If(machineName == “xyz”)

          Then set some string in Outgoing email Subject or Body.

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.