Udostępnij za pośrednictwem


AppDomainIsolatedTaskExtension Class

Definition

This class provides the same functionality as the Task class, but derives from MarshalByRefObject so that it can be instantiated in its own app domain.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class AppDomainIsolatedTaskExtension abstract : Microsoft::Build::Utilities::AppDomainIsolatedTask
[Microsoft.Build.Framework.LoadInSeparateAppDomain]
public abstract class AppDomainIsolatedTaskExtension : Microsoft.Build.Utilities.AppDomainIsolatedTask
[<Microsoft.Build.Framework.LoadInSeparateAppDomain>]
type AppDomainIsolatedTaskExtension = class
    inherit AppDomainIsolatedTask
Public MustInherit Class AppDomainIsolatedTaskExtension
Inherits AppDomainIsolatedTask
Inheritance
AppDomainIsolatedTaskExtension
Derived
Attributes

Properties

BuildEngine

The build engine automatically sets this property to allow tasks to call back into it.

(Inherited from AppDomainIsolatedTask)
HelpKeywordPrefix

Gets or sets the prefix used to compose help keywords from string resource names. If a task does not have help keywords associated with its messages, it can ignore this property or set it to null. If the prefix is set to an empty string, then string resource names will be used verbatim as help keywords. For an example of how this prefix is used, see the LogErrorWithCodeFromResources(String, Object[]) method.

(Inherited from AppDomainIsolatedTask)
HostObject

The build engine sets this property if the host IDE has associated a host object with this particular task.

(Inherited from AppDomainIsolatedTask)
Log

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets an instance of a TaskLoggingHelperExtension class containing task logging methods.

TaskResources

Gets or sets the task's culture-specific resources. Derived classes should register their resources either during construction, or via this property, if they have localized strings.

(Inherited from AppDomainIsolatedTask)

Methods

Execute()

Must be implemented by derived class.

(Inherited from AppDomainIsolatedTask)
InitializeLifetimeService()
Obsolete.

Overridden to give tasks deriving from this class infinite lease time. Otherwise we end up with a limited lease (5 minutes I think) and task instances can expire if they take long time processing.

(Inherited from AppDomainIsolatedTask)

Applies to