Table of Contents

Method InitializeLifetimeService

Namespace
Xunit.Runner.v1
Assembly
xunit.v3.runner.utility.netfx.dll

InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

[SecurityCritical]
public override sealed object InitializeLifetimeService()

Returns

object

An object of type ILease used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the LeaseManagerPollTime property.

Exceptions

SecurityException

The immediate caller does not have infrastructure permission.