ITestHostManager.AddTestHostApplicationLifetime Method

Definition

Adds a test application lifecycle callbacks.

public void AddTestHostApplicationLifetime(Func<IServiceProvider,Microsoft.Testing.Platform.Extensions.TestHost.ITestHostApplicationLifetime> testHostApplicationLifetimeFactory);
abstract member AddTestHostApplicationLifetime : Func<IServiceProvider, Microsoft.Testing.Platform.Extensions.TestHost.ITestHostApplicationLifetime> -> unit
Public Sub AddTestHostApplicationLifetime (testHostApplicationLifetimeFactory As Func(Of IServiceProvider, ITestHostApplicationLifetime))

Parameters

testHostApplicationLifetimeFactory
Func<IServiceProvider,ITestHostApplicationLifetime>

The factory method for creating the test host application lifetime callbacks.

Applies to