Пример #1
0
        public static IWebHostBuilder SetAppWebRootByENV(this IWebHostBuilder hostWebBuilder)
        {
            var recWeb = EnvVariablesRetriever.GetAppWebRootPath(); //For VM MUST be configured

            if (!String.IsNullOrEmpty(recWeb))
            {
                hostWebBuilder.UseWebRoot(recWeb);
            }
            return(hostWebBuilder);
        }
Пример #2
0
        public static IHostBuilder SetAppContentRootByENV(this IHostBuilder hostBuilder)
        {
            var rec = EnvVariablesRetriever.GetAppContentRootPath(); //For VM MUST be configured

            if (!String.IsNullOrEmpty(rec))
            {
                hostBuilder.UseContentRoot(rec);
            }
            return(hostBuilder);
        }