Condividi tramite


TaskItem.InitializeLifetimeService Method

Definition

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

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

Returns

null to specify an infinite lifetime.

Attributes

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