Editare

Partajați prin


ApplicationManager Class

Definition

Manages ASP.NET application domains for an ASP.NET hosting application.

public ref class ApplicationManager sealed : MarshalByRefObject
public sealed class ApplicationManager : MarshalByRefObject
type ApplicationManager = class
    inherit MarshalByRefObject
Public NotInheritable Class ApplicationManager
Inherits MarshalByRefObject
Inheritance
ApplicationManager

Remarks

The ApplicationManager object provides lifetime management of objects in the hosting environment for an ASP.NET application. It is responsible for:

  • Activating and initializing ASP.NET applications.

  • Managing the application lifetime and the lifetime of objects registered in the application.

  • Exposing objects used by the hosting environment to process ASP.NET application requests.

  • Providing a list of applications running in the hosting process at any given moment.

Methods

Close()

Shuts down all application domains.

CreateObject(IApplicationHost, Type)

Creates an object for the specified application domain, based on type.

CreateObject(String, Type, String, String, Boolean, Boolean)

Creates an object for the specified application domain based on type, virtual and physical paths, a Boolean value indicating failure behavior when an object of the specified type already exists, and a Boolean value indicating whether hosting initialization error exceptions are thrown.

CreateObject(String, Type, String, String, Boolean)

Creates an object for the specified application domain based on type, virtual and physical paths, and a Boolean value indicating failure behavior when an object of the specified type already exists.

CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetAppDomain(IApplicationHost)

Gets the application domain of an application using the specified host.

GetAppDomain(String)

Gets the application domain of the specified application.

GetApplicationManager()

Returns the single instance of the ApplicationManager object associated with this ASP.NET host process.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetObject(String, Type)

Returns the registered object of the specified type from the specified application.

GetRunningApplications()

Returns a snapshot of running applications.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()

Gives the application domain an infinite lifetime by preventing a lease from being created.

IsIdle()

Returns a value indicating whether all applications hosted by the process are idle and not processing requests.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
Open()

Makes a thread-safe increment to the user reference count of the application manager instance.

ShutdownAll()

Unloads all application resources.

ShutdownApplication(String)

Unloads the specified application.

StopObject(String, Type)

Removes the specified object from the list of registered objects in an application. If the object to be removed is the last remaining object in the list of registered objects in an application, the application is unloaded.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to