ConventionContextExtensions Class

Summary

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

Syntax

public static class ConventionContextExtensions

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

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