Kudu.Core.Deployment.DeploymentStatusFile.GetSiteName C# (CSharp) 메소드

GetSiteName() 개인적인 정적인 메소드

private static GetSiteName ( IEnvironment environment ) : string
environment IEnvironment
리턴 string
        private static string GetSiteName(IEnvironment environment)
        {
            // Try to get the site name from the environment (WAWS will set it)
            string siteName = ServerConfiguration.GetApplicationName();
            if (String.IsNullOrEmpty(siteName))
            {
                // Otherwise get it from the root directory name
                siteName = Path.GetFileName(environment.RootPath);
            }

            return siteName;
        }
    }