ConventionHostBuilderExtensions Class

Summary

Base convention extensions
graph BT Type-->Base0["Object"] Type["ConventionHostBuilderExtensions"] class Type type-node

Syntax

public static class ConventionHostBuilderExtensions

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

Name Value Summary
Get<T>(IConventionHostBuilder, string) T
Get a value by key from the context
static
Get<T>(IConventionHostBuilder) T
Get a value by type from the context
static
Get<T>(IServiceProviderDictionary, string) T
Get a value by key from the context
static
Get<T>(IServiceProviderDictionary) T
Get a value by type from the context
static
GetOrAdd<T>(IConventionHostBuilder, Func<T>) T
Get a value by key from the context
static
GetOrAdd<T>(IConventionHostBuilder, string, Func<T>) T
Get a value by key from the context
static
GetOrAdd<T>(IServiceProviderDictionary, Func<T>) T
Get a value by key from the context
static
GetOrAdd<T>(IServiceProviderDictionary, string, Func<T>) T
Get a value by key from the context
static
IsUnitTestHost(IConventionHostBuilder) bool
Check if this is a test host (to allow conventions to behave differently during unit tests)
static
IsUnitTestHost(IServiceProviderDictionary) bool
Check if this is a test host (to allow conventions to behave differently during unit tests)
static
Set<T>(IConventionHostBuilder, string, T) void
Get a value by type from the context
static
Set<T>(IConventionHostBuilder, T) void
Get a value by type from the context
static
Set<T>(IServiceProviderDictionary, string, T) void
Get a value by type from the context
static
Set<T>(IServiceProviderDictionary, T) void
Get a value by type from the context
static