Monday, May 3, 2021

EPiServer - Check app data path from Code

  var appDataBasePath = EPiServer.Framework.Configuration.EPiServerFrameworkSection.Instance.AppData.BasePath;

            if (appDataBasePath.ToLower() == "app_data")
            {
                commentLogger.Log(Level.Error, $@"App data Path used: {AppDomain.CurrentDomain.BaseDirectory}{appDataBasePath}");
            }

No comments:

Post a Comment