ConventionTestHostBuilder.

For(DependencyContext, ILoggerFactory) Method

Summary

Create a convention test host build for the given Microsoft.Extensions.DependencyModel.DependencyContext in the assembly.

Syntax

public static ConventionTestHostBuilder For(DependencyContext context, ILoggerFactory loggerFactory = null)

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
context DependencyContext The context that that will be used for the test host.
loggerFactory ILoggerFactory Optional logger factory.

Return Value

Type Description
ConventionTestHostBuilder