Summary
The base context marker interface to define this as a context
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Implementing Types
-
- MetricsBuilder
- ServicesBuilder
- I
Hosting Convention Context - I
Service Convention Context - I
Autofac Convention Context - I
Web Jobs Convention Context - I
Logging Convention Context - ConventionContext
- AppMetricsBuilder
- CommandLineBuilder
- SerilogBuilder
- I
Command Line Convention Context - Web
Jobs Convention Builder - I
Serilog Convention Context - IServicesBuilder
- I
App Metrics Convention Context - AutofacBuilder
- I
Configuration Convention Context - I
Web Jobs Convention Builder
Syntax
public interface IConventionContext
Attributes
Type | Description |
---|---|
Nullable |
|
Default |
Properties
Name | Value | Summary |
---|---|---|
Logger | ILogger | |
Properties | IDictionary |
A central location for sharing state between components during the convention building process.
|
this[object] | object |
Allows a context to hold additional information for conventions to consume such as configuration objects
|
Extension Methods
Name | Value | Summary |
---|---|---|
Get |
T |
Get a value by key from the context
|
Get |
T |
Get a value by type from the context
|
GetOrAdd |
T |
Get a value by key from the context
|
GetOrAdd |
T |
Get a value by key from the context
|
IsUnitTestHost |
bool |
Check if this is a test host (to allow conventions to behave differently during unit tests)
|
Set |
void |
Get a value by type from the context
|
Set |
void |
Get a value by type from the context
|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|