Ejemplo n.º 1
0
 /// <summary>
 /// Unloads a <see cref="WebApplication"/> from the current web server instance.
 /// </summary>
 /// <param name="webApp">The <see cref="WebApplication"/> to unload.</param>
 public void UnloadApplication(WebApplication webApp)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads a <see cref="WebApplication"/> into the current web server instance.
        /// </summary>
        /// <param name="webApp">The <see cref="WebApplication"/> to load.</param>
        public void LoadApplication(WebApplication webApp)
        {
            Contract.Requires(webApp != null);

            if (this.apps.Any(a => a.Name.Equals(webApp.Name, StringComparison.OrdinalIgnoreCase)))
                return;
            webApp.InitializeResources();
            this.apps.Add(webApp);

            this.resources.Root.AddChild(webApp.ApplicationRoot);
        }