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
-
- Newtonsoft
Json Convention - Serilog
Extensions Convention - IServiceConvention
- MediatRConvention
- Asp
Net Core Metrics Convention - PostgresConvention
- Request
Logging Convention - Swashbuckle
Newtonsoft Json Convention - ConventionComposer
<TContext, TContribution, TDelegate> - Serilog
Enrich Environment Logging Convention - Serilog
Hosting Convention - Hosting
Metrics Convention - AppMetricsConvention
- ISerilogConvention
- Fluent
Validation Mediat R Convention - Marten
Middleware Unit Of Work Convention - I
Configuration Convention - Serilog
Debug Logging Convention - Marten
Functions Unit Of Work Convention - Swashbuckle
Convention - ILoggingConvention
- I
App Metrics Convention - AzureiteConvention
- Serilog
Enrich Logging Convention - I
Command Line Convention - AutoMapperConvention
- Fluent
Validation Convention - NodaTimeConvention
- Serilog
Read From Configuration Convention - Asp
Net Core Fluent Validation Convention - IWebJobsConvention
- IHostingConvention
- Docker
Compose Convention - Environment
Logging Convention - Marten
Command Convention - Auto
Mapper Newtonsoft Json Convention - Serilog
Conditionally Async Logging Convention - Serilog
Console Logging Convention - System
Json Text Convention - Mediator
R Operations Convention - AspNetCoreConvention
- IConventionComposer
<TContext, TContribution, TDelegate> - IAutofacConvention
- MartenConvention
- Asp
Net Core Fluent Validation Newtonsoft Json Convention
- Newtonsoft
graph BT
Type-.->Interface0["IConvention"]
click Interface0 "/api/Rocket.Surgery.Conventions/IConvention"
Type["IConvention<TContext>"]
class Type type-node
Implementing0["NewtonsoftJsonConvention"]-.->Type
click Implementing0 "/api/Rocket.Surgery.AspNetCore/NewtonsoftJsonConvention"
Implementing1["SerilogExtensionsConvention"]-.->Type
click Implementing1 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogExtensionsConvention"
Implementing2["IServiceConvention"]-.->Type
click Implementing2 "/api/Rocket.Surgery.Extensions.DependencyInjection/IServiceConvention"
Implementing3["MediatRConvention"]-.->Type
click Implementing3 "/api/Rocket.Surgery.Extensions.MediatR/MediatRConvention"
Implementing4["AspNetCoreMetricsConvention"]-.->Type
click Implementing4 "/api/Rocket.Surgery.AspNetCore.Metrics/AspNetCoreMetricsConvention"
Implementing5["PostgresConvention"]-.->Type
click Implementing5 "/api/Rocket.Surgery.Automation.Postgres/PostgresConvention"
Implementing6["RequestLoggingConvention"]-.->Type
click Implementing6 "/api/Rocket.Surgery.AspNetCore.Serilog.Conventions/RequestLoggingConvention"
Implementing7["SwashbuckleNewtonsoftJsonConvention"]-.->Type
click Implementing7 "/api/Rocket.Surgery.AspNetCore.Swashbuckle.NewtonsoftJson/SwashbuckleNewtonsoftJsonConvention"
Implementing8["ConventionComposer<TContext, TContribution, TDelegate>"]-.->Type
click Implementing8 "/api/Rocket.Surgery.Conventions/ConventionComposer_3"
Implementing9["SerilogEnrichEnvironmentLoggingConvention"]-.->Type
click Implementing9 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogEnrichEnvironmentLoggingConvention"
Implementing10["SerilogHostingConvention"]-.->Type
click Implementing10 "/api/Rocket.Surgery.Hosting.Serilog.Conventions/SerilogHostingConvention"
Implementing11["HostingMetricsConvention"]-.->Type
click Implementing11 "/api/Rocket.Surgery.Hosting.Metrics/HostingMetricsConvention"
Implementing12["AppMetricsConvention"]-.->Type
click Implementing12 "/api/Rocket.Surgery.Extensions.App.Metrics/AppMetricsConvention"
Implementing13["ISerilogConvention"]-.->Type
click Implementing13 "/api/Rocket.Surgery.Extensions.Serilog/ISerilogConvention"
Implementing14["FluentValidationMediatRConvention"]-.->Type
click Implementing14 "/api/Rocket.Surgery.Extensions.FluentValidation.MediatR/FluentValidationMediatRConvention"
Implementing15["MartenMiddlewareUnitOfWorkConvention"]-.->Type
click Implementing15 "/api/Rocket.Surgery.Extensions.Marten.AspNetCore/MartenMiddlewareUnitOfWorkConvention"
Implementing16["IConfigurationConvention"]-.->Type
click Implementing16 "/api/Rocket.Surgery.Extensions.Configuration/IConfigurationConvention"
Implementing17["SerilogDebugLoggingConvention"]-.->Type
click Implementing17 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogDebugLoggingConvention"
Implementing18["MartenFunctionsUnitOfWorkConvention"]-.->Type
click Implementing18 "/api/Rocket.Surgery.Extensions.Marten.Functions/MartenFunctionsUnitOfWorkConvention"
Implementing19["SwashbuckleConvention"]-.->Type
click Implementing19 "/api/Rocket.Surgery.AspNetCore.Swashbuckle/SwashbuckleConvention"
Implementing20["ILoggingConvention"]-.->Type
click Implementing20 "/api/Rocket.Surgery.Extensions.Logging/ILoggingConvention"
Implementing21["IAppMetricsConvention"]-.->Type
click Implementing21 "/api/Rocket.Surgery.Extensions.App.Metrics/IAppMetricsConvention"
Implementing22["AzureiteConvention"]-.->Type
click Implementing22 "/api/Rocket.Surgery.Automation.Azurite/AzureiteConvention"
Implementing23["SerilogEnrichLoggingConvention"]-.->Type
click Implementing23 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogEnrichLoggingConvention"
Implementing24["ICommandLineConvention"]-.->Type
click Implementing24 "/api/Rocket.Surgery.Extensions.CommandLine/ICommandLineConvention"
Implementing25["AutoMapperConvention"]-.->Type
click Implementing25 "/api/Rocket.Surgery.Extensions.AutoMapper/AutoMapperConvention"
Implementing26["FluentValidationConvention"]-.->Type
click Implementing26 "/api/Rocket.Surgery.Extensions.FluentValidation/FluentValidationConvention"
Implementing27["NodaTimeConvention"]-.->Type
click Implementing27 "/api/Rocket.Surgery.Extensions.DependencyInjection/NodaTimeConvention"
Implementing28["SerilogReadFromConfigurationConvention"]-.->Type
click Implementing28 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogReadFromConfigurationConvention"
Implementing29["AspNetCoreFluentValidationConvention"]-.->Type
click Implementing29 "/api/Rocket.Surgery.AspNetCore.FluentValidation/AspNetCoreFluentValidationConvention"
Implementing30["IWebJobsConvention"]-.->Type
click Implementing30 "/api/Rocket.Surgery.Extensions.WebJobs/IWebJobsConvention"
Implementing31["IHostingConvention"]-.->Type
click Implementing31 "/api/Rocket.Surgery.Hosting/IHostingConvention"
Implementing32["DockerComposeConvention"]-.->Type
click Implementing32 "/api/Rocket.Surgery.Automation.DockerCompose/DockerComposeConvention"
Implementing33["EnvironmentLoggingConvention"]-.->Type
click Implementing33 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/EnvironmentLoggingConvention"
Implementing34["MartenCommandConvention"]-.->Type
click Implementing34 "/api/Rocket.Surgery.Extensions.Marten.Conventions/MartenCommandConvention"
Implementing35["AutoMapperNewtonsoftJsonConvention"]-.->Type
click Implementing35 "/api/Rocket.Surgery.Extensions.AutoMapper.NewtonsoftJson/AutoMapperNewtonsoftJsonConvention"
Implementing36["SerilogConditionallyAsyncLoggingConvention"]-.->Type
click Implementing36 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogConditionallyAsyncLoggingConvention"
Implementing37["SerilogConsoleLoggingConvention"]-.->Type
click Implementing37 "/api/Rocket.Surgery.Extensions.Serilog.Conventions/SerilogConsoleLoggingConvention"
Implementing38["SystemJsonTextConvention"]-.->Type
click Implementing38 "/api/Rocket.Surgery.AspNetCore/SystemJsonTextConvention"
Implementing39["MediatorROperationsConvention"]-.->Type
click Implementing39 "/api/Rocket.Surgery.Operational.MediatR/MediatorROperationsConvention"
Implementing40["AspNetCoreConvention"]-.->Type
click Implementing40 "/api/Rocket.Surgery.AspNetCore.Contributions/AspNetCoreConvention"
Implementing41["IConventionComposer<TContext, TContribution, TDelegate>"]-.->Type
click Implementing41 "/api/Rocket.Surgery.Conventions/IConventionComposer_3"
Implementing42["IAutofacConvention"]-.->Type
click Implementing42 "/api/Rocket.Surgery.Extensions.Autofac/IAutofacConvention"
Implementing43["MartenConvention"]-.->Type
click Implementing43 "/api/Rocket.Surgery.Extensions.Marten.Conventions/MartenConvention"
Implementing44["AspNetCoreFluentValidationNewtonsoftJsonConvention"]-.->Type
click Implementing44 "/api/Rocket.Surgery.AspNetCore.FluentValidation.NewtonsoftJson/AspNetCoreFluentValidationNewtonsoftJsonConvention"
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.
|