コード例 #1
0
        public static IisApplicationConfiguration FromMwaApplication(ILogSink logger, string siteName, Application app, IisApplicationConfiguration template = null)
        {
            var config = new IisApplicationConfiguration();

            config.SiteName            = siteName;
            config.ApplicationPath     = app.Path;
            config.ApplicationPoolName = app.ApplicationPoolName;
            config.SetPropertiesFromMwa(logger, app.VirtualDirectories["/"], template);
            return(config);
        }
コード例 #2
0
 public static void SetMwaApplication(ILogSink logger, IisApplicationConfiguration config, Application app)
 {
     app.Path = config.ApplicationPath;
     app.ApplicationPoolName = config.ApplicationPoolName;
     config.SetPropertiesOnMwa(logger, app.VirtualDirectories["/"]);
 }