HostType Class

Summary

The underlying host type (currently only checked for test host) This is so that conventions can avoid adding behaviors that might cause issues with unit testing such as writing to the console or debug pipes, or ensuring that something is configured in a correct way for testing. Careful consideration is needed to make sure that your system doesn't behave extremely differently in a live scenario vs a testing scenario
graph BT Type-->Base0["Enum"] Type["HostType"] class Type type-node

Syntax

public sealed class HostType : Enum

Fields

Name Constant Value Summary
Live 1
This is a live application This also may apply to in memory integration tests running through the HostBuilder infrastructure
static
Undefined 0
No hast type has been defined
static
UnitTestHost 2
This is a unit test context This is so that conventions can avoid adding behaviors that might cause issues with unit testing such as writing to the console or debug pipes, or ensuring that something is configured in a correct way for testing. Careful consideration is needed to make sure that your system doesn't behave extremely differently in a live scenario vs a testing scenario
static
value__

Extension Methods

Name Value Summary
SetBackingValue<HostType, TV>(Expression<Func<HostType, TV>>, TV) T
Sets the backing value.
With<HostType, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.