ITestHostManager.AddTestSessionLifetimeHandle Method

Definition

Overloads

Name Description
AddTestSessionLifetimeHandle(Func<IServiceProvider,ITestSessionLifetimeHandler>)
Obsolete.

Adds a test session lifetime handle.

AddTestSessionLifetimeHandle<T>(CompositeExtensionFactory<T>)
Obsolete.

Adds a test session lifetime handle of type T.

AddTestSessionLifetimeHandle(Func<IServiceProvider,ITestSessionLifetimeHandler>)

Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs

Caution

Use AddTestSessionLifetimeHandler instead.

Adds a test session lifetime handle.

public void AddTestSessionLifetimeHandle(Func<IServiceProvider,Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler> testSessionLifetimeHandleFactory);
[System.Obsolete("Use AddTestSessionLifetimeHandler instead.", true)]
public void AddTestSessionLifetimeHandle(Func<IServiceProvider,Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler> testSessionLifetimeHandleFactory);
abstract member AddTestSessionLifetimeHandle : Func<IServiceProvider, Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler> -> unit
[<System.Obsolete("Use AddTestSessionLifetimeHandler instead.", true)>]
abstract member AddTestSessionLifetimeHandle : Func<IServiceProvider, Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler> -> unit
Public Sub AddTestSessionLifetimeHandle (testSessionLifetimeHandleFactory As Func(Of IServiceProvider, ITestSessionLifetimeHandler))

Parameters

testSessionLifetimeHandleFactory
Func<IServiceProvider,ITestSessionLifetimeHandler>

The factory method for creating the test session lifetime handle.

Attributes

Applies to

AddTestSessionLifetimeHandle<T>(CompositeExtensionFactory<T>)

Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs
Source:
ITestHostManager.cs

Caution

Use AddTestSessionLifetimeHandler instead.

Adds a test session lifetime handle of type T.

public void AddTestSessionLifetimeHandle<T>(Microsoft.Testing.Platform.Extensions.CompositeExtensionFactory<T> compositeServiceFactory) where T : class, Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler;
[System.Obsolete("Use AddTestSessionLifetimeHandler instead.", true)]
public void AddTestSessionLifetimeHandle<T>(Microsoft.Testing.Platform.Extensions.CompositeExtensionFactory<T> compositeServiceFactory) where T : class, Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler;
abstract member AddTestSessionLifetimeHandle : Microsoft.Testing.Platform.Extensions.CompositeExtensionFactory<'T (requires 'T : null and 'T :> Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler)> -> unit (requires 'T : null and 'T :> Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler)
[<System.Obsolete("Use AddTestSessionLifetimeHandler instead.", true)>]
abstract member AddTestSessionLifetimeHandle : Microsoft.Testing.Platform.Extensions.CompositeExtensionFactory<'T (requires 'T : null and 'T :> Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler)> -> unit (requires 'T : null and 'T :> Microsoft.Testing.Platform.Extensions.TestHost.ITestSessionLifetimeHandler)
Public Sub AddTestSessionLifetimeHandle(Of T As {Class, ITestSessionLifetimeHandler}) (compositeServiceFactory As CompositeExtensionFactory(Of T))

Type Parameters

T

The type of the test session lifetime handle.

Parameters

compositeServiceFactory
CompositeExtensionFactory<T>

The composite extension factory for creating the test session lifetime handle.

Attributes

Applies to