TaskItem.InitializeLifetimeService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.