ConventionHostBuilderExtensions.

IsUnitTestHost(IConventionHostBuilder) Method

Summary

Check if this is a test host (to allow conventions to behave differently during unit tests)

Syntax

public static bool IsUnitTestHost(this IConventionHostBuilder context)

Parameters

Name Type Description
context IConventionHostBuilder The context

Return Value

Type Description
bool