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
- I
Logging Convention Context - I
Autofac Convention Context - AppMetricsBuilder
- SerilogBuilder
- ConventionContext
- I
Web Jobs Convention Builder - I
Web Jobs Convention Context - I
Command Line Convention Context - IServicesBuilder
- ServicesBuilder
- CommandLineBuilder
- I
Hosting Convention Context - Web
Jobs Convention Builder - I
Configuration Convention Context - I
Serilog Convention Context - I
App Metrics Convention Context - I
Service Convention Context - AutofacBuilder
Syntax
public interface IConventionContext
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| Default |
Properties
| Name | Value | Summary |
|---|---|---|
| Logger | ILogger |
A logger that is configured to work with each convention item
|
| 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.
|
