title: AppDomainAppId in .NET Core?
body: <p>When I get AppDomainAppId in .NET, I get a path like 
  <code>/LM/W3C/&lt;site id&gt;/&lt;servicename&gt;</code>, how can I get the exact same path in an .NET Core service?</p>
  
  <p>I tried the suggestion from <a href="https://stackoverflow.com/questions/43916487/httpruntime-appdomainapppath-equivalent-in-asp-net-core">HttpRuntime.AppDomainAppPath equivalent in ASP.NET Core</a> but I got my install path like <code>C:/path/to/app</code> and not a path as described above.</p>
  
  <p>How can I get the path described above or how can I specifically get the <code>&lt;site id&gt;</code> part? I can get the <code>&lt;servicename&gt;</code> from <code>HostingEnvironment.ApplicationName</code> but not the <code>&lt;site id&gt;</code> that I need.</p>