AppDomainIsolatedTask.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.
Caution
AppDomains are no longer supported in .NET Core or .NET 5.0 or higher.
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.
public:
override System::Object ^ InitializeLifetimeService();
[System.Security.SecurityCritical]
public override object InitializeLifetimeService ();
[System.Security.SecurityCritical]
[System.Obsolete("AppDomains are no longer supported in .NET Core or .NET 5.0 or higher.")]
public override object InitializeLifetimeService ();
public override object InitializeLifetimeService ();
[<System.Security.SecurityCritical>]
override this.InitializeLifetimeService : unit -> obj
[<System.Security.SecurityCritical>]
[<System.Obsolete("AppDomains are no longer supported in .NET Core or .NET 5.0 or higher.")>]
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.