ConventionHostBuilderExtensions.

IsUnitTestHost(IServiceProviderDictionary) Method

Summary

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

Syntax

public static bool IsUnitTestHost(this IServiceProviderDictionary serviceProviderDictionary)

Parameters

Name Type Description
serviceProviderDictionary IServiceProviderDictionary The properties

Return Value

Type Description
bool