WebMarkupMin.Sample.Logic.Services.FileContentService.GetPhysicalFilePath C# (CSharp) 메소드

GetPhysicalFilePath() 개인적인 메소드

private GetPhysicalFilePath ( string filePath ) : string
filePath string
리턴 string
		private string GetPhysicalFilePath(string filePath)
		{
#if NETSTANDARD1_6 || NET451
			string applicationDirectoryPath = _hostingEnvironment.ContentRootPath;
#elif NET40
			HttpContext context = HttpContext.Current;
			string applicationDirectoryPath = context.Server.MapPath("~/");
#else
#error No implementation for this target
#endif
			string physicalFilePath = Path.Combine(
				applicationDirectoryPath,
				filePath.Replace('/', '\\').TrimStart(new char[] { '\\' })
			);

			return physicalFilePath;
		}
	}