Since I could not get my Request object in application start event, I have choose the below approach to achieve my task. All that I wanted to know was my host in app start event.
- Create Web.Config Transform
- Add a app key in each environment like
<add key="cdnReference" value="http://localhost:xxxx/" />
- read the key in your app start event as
cdnHost = ConfigurationManager.AppSettings["cdnReference"];