다음을 통해 공유


AppDomainIsolatedTask.InitializeLifetimeService Method

Definition

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.

Applies to