Summary
A default interface that can be used to create a convention with a known context type
context is used to house all the data that the convention requires to do it's job
This can be things like a service collection, container builder, logger, etc.
Implements the
IConvention
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Interfaces
- Implementing Types
-
- AspNetCoreConvention
- Docker
Compose Convention - Request
Logging Convention - Mediator
R Operations Convention - Marten
Middleware Unit Of Work Convention - Newtonsoft
Json Convention - Marten
Command Convention - Serilog
Enrich Logging Convention - ILoggingConvention
- Asp
Net Core Fluent Validation Convention - IHostingConvention
- Swashbuckle
Convention - Fluent
Validation Mediat R Convention - ISerilogConvention
- Serilog
Conditionally Async Logging Convention - IServiceConvention
- I
Command Line Convention - MediatRConvention
- I
Configuration Convention - Auto
Mapper Newtonsoft Json Convention - Hosting
Metrics Convention - Serilog
Read From Configuration Convention - Environment
Logging Convention - Serilog
Console Logging Convention - Swashbuckle
Newtonsoft Json Convention - AutoMapperConvention
- Serilog
Hosting Convention - Asp
Net Core Fluent Validation Newtonsoft Json Convention - MartenConvention
- Serilog
Debug Logging Convention - IWebJobsConvention
- PostgresConvention
- ConventionComposer
<TContext, TContribution, TDelegate> - NodaTimeConvention
- AppMetricsConvention
- Fluent
Validation Convention - IAutofacConvention
- AzureiteConvention
- I
App Metrics Convention - Serilog
Extensions Convention - Marten
Functions Unit Of Work Convention - Serilog
Enrich Environment Logging Convention - Asp
Net Core Metrics Convention - IConventionComposer
<TContext, TContribution, TDelegate> - System
Json Text Convention
graph BT
Type-.->Interface0["IConvention"]
click Interface0 "/api/Rocket.Surgery.Conventions/IConvention"
Type["IConvention<TContext>"]
class Type type-node
Implementing0["AspNetCoreConvention"]-.->Type
click Implementing0 "/api/Rocket.Surgery.AspNetCore.Contributions/AspNetCoreConvention"
Implementing1["DockerComposeConvention"]-.->Type
click Implementing1 "/api/Rocket.Surgery.Automation.DockerCompose/DockerComposeConvention"
Implementing2["RequestLoggingConvention"]-.->Type
click Implementing2 "/api/Rocket.Surgery.AspNetCore.Serilog.Conventions/RequestLoggingConvention"
Implementing3["MediatorROperationsConvention"]-.->Type
click Implementing3 "/api/Rocket.Surgery.Operational.MediatR/MediatorROperationsConvention"
Implementing4["MartenMiddlewareUnitOfWorkConvention"]-.->Type
click Implementing4 "/api/Rocket.Surgery.Extensions.Marten.AspNetCore/MartenMiddlewareUnitOfWorkConvention"
Implementing5["NewtonsoftJsonConvention"]-.->Type
click Implementing5 "/api/Rocket.Surgery.AspNetCore/NewtonsoftJsonConvention"
Implementing6["MartenCommandConvention"]-.->Type
click Implementing6 "/api/Rocket.Surgery.Extensions.Marten.Conventions/MartenCommandConvention"
Implementing7["SerilogEnrichLoggingConvention"]-.->Type
click Implementing7 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogEnrichLoggingConvention"
Implementing8["ILoggingConvention"]-.->Type
click Implementing8 "/api/Rocket.Surgery.Extensions.Logging/ILoggingConvention"
Implementing9["AspNetCoreFluentValidationConvention"]-.->Type
click Implementing9 "/api/Rocket.Surgery.AspNetCore.FluentValidation/AspNetCoreFluentValidationConvention"
Implementing10["IHostingConvention"]-.->Type
click Implementing10 "/api/Rocket.Surgery.Hosting/IHostingConvention"
Implementing11["SwashbuckleConvention"]-.->Type
click Implementing11 "/api/Rocket.Surgery.AspNetCore.Swashbuckle/SwashbuckleConvention"
Implementing12["FluentValidationMediatRConvention"]-.->Type
click Implementing12 "/api/Rocket.Surgery.Extensions.FluentValidation.MediatR/FluentValidationMediatRConvention"
Implementing13["ISerilogConvention"]-.->Type
click Implementing13 "/api/Rocket.Surgery.Extensions.Serilog/ISerilogConvention"
Implementing14["SerilogConditionallyAsyncLoggingConvention"]-.->Type
click Implementing14 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogConditionallyAsyncLoggingConvention"
Implementing15["IServiceConvention"]-.->Type
click Implementing15 "/api/Rocket.Surgery.Extensions.DependencyInjection/IServiceConvention"
Implementing16["ICommandLineConvention"]-.->Type
click Implementing16 "/api/Rocket.Surgery.Extensions.CommandLine/ICommandLineConvention"
Implementing17["MediatRConvention"]-.->Type
click Implementing17 "/api/Rocket.Surgery.Extensions.MediatR/MediatRConvention"
Implementing18["IConfigurationConvention"]-.->Type
click Implementing18 "/api/Rocket.Surgery.Extensions.Configuration/IConfigurationConvention"
Implementing19["AutoMapperNewtonsoftJsonConvention"]-.->Type
click Implementing19 "/api/Rocket.Surgery.Extensions.AutoMapper.NewtonsoftJson/AutoMapperNewtonsoftJsonConvention"
Implementing20["HostingMetricsConvention"]-.->Type
click Implementing20 "/api/Rocket.Surgery.Hosting.Metrics/HostingMetricsConvention"
Implementing21["SerilogReadFromConfigurationConvention"]-.->Type
click Implementing21 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogReadFromConfigurationConvention"
Implementing22["EnvironmentLoggingConvention"]-.->Type
click Implementing22 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/EnvironmentLoggingConvention"
Implementing23["SerilogConsoleLoggingConvention"]-.->Type
click Implementing23 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogConsoleLoggingConvention"
Implementing24["SwashbuckleNewtonsoftJsonConvention"]-.->Type
click Implementing24 "/api/Rocket.Surgery.AspNetCore.Swashbuckle.NewtonsoftJson/SwashbuckleNewtonsoftJsonConvention"
Implementing25["AutoMapperConvention"]-.->Type
click Implementing25 "/api/Rocket.Surgery.Extensions.AutoMapper/AutoMapperConvention"
Implementing26["SerilogHostingConvention"]-.->Type
click Implementing26 "/api/Rocket.Surgery.Hosting.Serilog.Conventions/SerilogHostingConvention"
Implementing27["AspNetCoreFluentValidationNewtonsoftJsonConvention"]-.->Type
click Implementing27 "/api/Rocket.Surgery.AspNetCore.FluentValidation.NewtonsoftJson/AspNetCoreFluentValidationNewtonsoftJsonConvention"
Implementing28["MartenConvention"]-.->Type
click Implementing28 "/api/Rocket.Surgery.Extensions.Marten.Conventions/MartenConvention"
Implementing29["SerilogDebugLoggingConvention"]-.->Type
click Implementing29 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogDebugLoggingConvention"
Implementing30["IWebJobsConvention"]-.->Type
click Implementing30 "/api/Rocket.Surgery.Extensions.WebJobs/IWebJobsConvention"
Implementing31["PostgresConvention"]-.->Type
click Implementing31 "/api/Rocket.Surgery.Automation.Postgres/PostgresConvention"
Implementing32["ConventionComposer<TContext, TContribution, TDelegate>"]-.->Type
click Implementing32 "/api/Rocket.Surgery.Conventions/ConventionComposer_3"
Implementing33["NodaTimeConvention"]-.->Type
click Implementing33 "/api/Rocket.Surgery.Extensions.DependencyInjection/NodaTimeConvention"
Implementing34["AppMetricsConvention"]-.->Type
click Implementing34 "/api/Rocket.Surgery.Extensions.App.Metrics/AppMetricsConvention"
Implementing35["FluentValidationConvention"]-.->Type
click Implementing35 "/api/Rocket.Surgery.Extensions.FluentValidation/FluentValidationConvention"
Implementing36["IAutofacConvention"]-.->Type
click Implementing36 "/api/Rocket.Surgery.Extensions.Autofac/IAutofacConvention"
Implementing37["AzureiteConvention"]-.->Type
click Implementing37 "/api/Rocket.Surgery.Automation.Azurite/AzureiteConvention"
Implementing38["IAppMetricsConvention"]-.->Type
click Implementing38 "/api/Rocket.Surgery.Extensions.App.Metrics/IAppMetricsConvention"
Implementing39["SerilogExtensionsConvention"]-.->Type
click Implementing39 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogExtensionsConvention"
Implementing40["MartenFunctionsUnitOfWorkConvention"]-.->Type
click Implementing40 "/api/Rocket.Surgery.Extensions.Marten.Functions/MartenFunctionsUnitOfWorkConvention"
Implementing41["SerilogEnrichEnvironmentLoggingConvention"]-.->Type
click Implementing41 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogEnrichEnvironmentLoggingConvention"
Implementing42["AspNetCoreMetricsConvention"]-.->Type
click Implementing42 "/api/Rocket.Surgery.AspNetCore.Metrics/AspNetCoreMetricsConvention"
Implementing43["IConventionComposer<TContext, TContribution, TDelegate>"]-.->Type
click Implementing43 "/api/Rocket.Surgery.Conventions/IConventionComposer_3"
Implementing44["SystemJsonTextConvention"]-.->Type
click Implementing44 "/api/Rocket.Surgery.AspNetCore/SystemJsonTextConvention"
Syntax
public interface IConvention<in TContext> : IConvention where TContext : IConventionContext
Type Parameters
Name | Description |
---|---|
TContext | The convention type that contains all the values for this convention to work |
Methods
Name | Value | Summary |
---|---|---|
Register |
void |
Extension Methods
Name | Value | Summary |
---|---|---|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|