AppDomainIsolatedTask.InitializeLifetimeService AppDomainIsolatedTask.InitializeLifetimeService AppDomainIsolatedTask.InitializeLifetimeService AppDomainIsolatedTask.InitializeLifetimeService Method

Definition

When overridden in a derived class, gives tasks infinite lease time.

public:
 override System::Object ^ InitializeLifetimeService();
[System.Security.SecurityCritical]
public override object InitializeLifetimeService ();
override this.InitializeLifetimeService : unit -> obj
Public Overrides Function InitializeLifetimeService () As Object

Returns

null to specify an infinite lifetime.

Remarks

Otherwise, a limited lease of 5 minutes will result; and task instances can expire if they take a long time to process.

Applies to