ServiceStack.AppHostBase.GetWebRootPath C# (CSharp) Méthode

GetWebRootPath() public méthode

The FilePath used in Virtual File Sources
public GetWebRootPath ( ) : string
Résultat string
        public override string GetWebRootPath()
        {
            if (app == null)
                return base.GetWebRootPath();

            var env = app.ApplicationServices.GetService<IHostingEnvironment>();
            return env.WebRootPath ?? env.ContentRootPath;
        }