ITestHostManager.AddTestHostApplicationLifetime 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.
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.