IConventionHostBuilder Interface

Summary

IConventionHostBuilder
graph BT Type["IConventionHostBuilder"] class Type type-node Implementing0["IRocketWebJobsContext"]-.->Type click Implementing0 "/api/Rocket.Surgery.Hosting.Functions/IRocketWebJobsContext" Implementing1["ConventionHostBuilder<TSelf>"]-.->Type click Implementing1 "/api/Rocket.Surgery.Conventions/ConventionHostBuilder_1" Implementing2["IHostingConventionContext"]-.->Type click Implementing2 "/api/Rocket.Surgery.Hosting/IHostingConventionContext" Implementing3["IRocketHostBuilder"]-.->Type click Implementing3 "/api/Rocket.Surgery.Hosting/IRocketHostBuilder" Implementing4["ConventionTestHost"]-.->Type click Implementing4 "/api/Rocket.Surgery.Conventions.TestHost/ConventionTestHost" Implementing5["IRocketFunctionHostBuilder"]-.->Type click Implementing5 "/api/Rocket.Surgery.Hosting.Functions/IRocketFunctionHostBuilder"

Syntax

public interface IConventionHostBuilder

Attributes

Type Description
NullableContextAttribute

Properties

Name Value Summary
AssemblyCandidateFinder IAssemblyCandidateFinder
Gets the assembly candidate finder.
AssemblyProvider IAssemblyProvider
Gets the assembly provider.
DiagnosticSource DiagnosticSource
Gets the diagnostic source.
Scanner IConventionScanner
Gets the scanner.
ServiceProperties IServiceProviderDictionary
A central location for sharing state between components during the convention building process.

Methods

Name Value Summary
AppendConvention(IConvention[]) IConventionHostBuilder
Adds a set of conventions to the scanner
AppendConvention(IEnumerable<IConvention>) IConventionHostBuilder
Adds a set of conventions to the scanner
AppendConvention(IEnumerable<Type>) IConventionHostBuilder
Adds a set of conventions to the scanner
AppendConvention(Type[]) IConventionHostBuilder
Adds a set of conventions to the scanner
AppendConvention<T>() IConventionHostBuilder
Adds a set of conventions to the scanner
AppendDelegate(Delegate[]) IConventionHostBuilder
Addes a set of delegates to the scanner
AppendDelegate(IEnumerable<Delegate>) IConventionHostBuilder
Adds a set of delegates to the scanner
PrependConvention(IConvention[]) IConventionHostBuilder
Adds a set of conventions to the scanner
PrependConvention(IEnumerable<IConvention>) IConventionHostBuilder
Adds a set of conventions to the scanner
PrependConvention(IEnumerable<Type>) IConventionHostBuilder
Adds a set of conventions to the scanner
PrependConvention(Type[]) IConventionHostBuilder
Adds a set of conventions to the scanner
PrependConvention<T>() IConventionHostBuilder
Adds a set of conventions to the scanner
PrependDelegate(Delegate[]) IConventionHostBuilder
Addes a set of delegates to the scanner
PrependDelegate(IEnumerable<Delegate>) IConventionHostBuilder
Adds a set of delegates to the scanner

Extension Methods

Name Value Summary
AddMartenUnitOfWorkFunctionFilter() IConventionHostBuilder
Adds the marten functions unit of work.
AddMartenUnitOfWorkMiddleware() IConventionHostBuilder
Adds the marten functions unit of work.
ConfigureCommandLine(CommandLineConventionDelegate) IConventionHostBuilder
Configure the commandline delegate to the convention scanner
ConfigureConfiguration(ConfigurationConventionDelegate) IConventionHostBuilder
Configure the configuration delegate to the convention scanner
ConfigureHosting(HostingConventionDelegate) IConventionHostBuilder
Configure the hosting delegate to the convention scanner
ConfigureLogging(LoggingConventionDelegate) IConventionHostBuilder
Configure the logging delegate to the convention scanner
ConfigureSerilog(SerilogConventionDelegate) IConventionHostBuilder
Configure the serilog delegate to the convention scanner
ConfigureServices(ServiceConventionDelegate) IConventionHostBuilder
Configure the services delegate to the convention scanner
ConfigureWebJobs(WebJobsConventionDelegate) IConventionHostBuilder
Configure the web jobs delegate to the convention scanner
Get<T>(string) T
Get a value by key from the context
Get<T>() T
Get a value by type from the context
GetOrAdd<T>(Func<T>) T
Get a value by key from the context
GetOrAdd<T>(string, Func<T>) 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<T>(string, T) void
Get a value by type from the context
Set<T>(T) void
Get a value by type from the context
SetBackingValue<IConventionHostBuilder, TV>(Expression<Func<IConventionHostBuilder, TV>>, TV) T
Sets the backing value.
UseAppMetrics(IMetricsBuilder, IHealthBuilder) IConventionHostBuilder
Uses the application metrics.
UseAutoMapper(AutoMapperOptions) IConventionHostBuilder
Uses AutoMapper.
UseDefaultAppMetrics() IConventionHostBuilder
Uses the default application metrics.
UseDevelopmentAzurite(int, Action<AzureiteConvention>, string[]) IConventionHostBuilder
UseDevelopmentDockerCompose(string, Action<DockerComposeConvention>) IConventionHostBuilder
UseDevelopmentPostgres(int, string, string, TimeSpan, Action<PostgresConvention>) IConventionHostBuilder
UseDevelopmentPostgres(string, int, string, string, string, string[], TimeSpan, Action<PostgresConvention>) IConventionHostBuilder
UseFluentValidation() IConventionHostBuilder
Adds fluent validation.
UseMarten(MartenOptions) IConventionHostBuilder
Uses marten.
UseMartenConnectionString(Func<NpgsqlConnection>) IConventionHostBuilder
Uses marten.
UseMartenConnectionString(Func<string>) IConventionHostBuilder
Uses marten.
UseMartenConnectionString(string) IConventionHostBuilder
Uses marten.
UseMartenLightweightTracking() IConventionHostBuilder
Uses marten.
UseMartenUnitOfWork() IConventionHostBuilder
Uses marten.
UseMartenWithDirtyTracking() IConventionHostBuilder
Uses marten.
UseMediatR(MediatRServiceConfiguration) IConventionHostBuilder
Adds MediatR.
UseMediatR() IConventionHostBuilder
Adds MediatR.
UseMediatROperations() IConventionHostBuilder
Adds fluent validation.
UseMetrics() IConventionHostBuilder
Uses the application metrics.
UseMetrics() IConventionHostBuilder
Uses the application metrics.
UseMetricsWithDefaults() IConventionHostBuilder
Uses the default application metrics.
UseMetricsWithDefaults() IConventionHostBuilder
Uses the default application metrics.
UseSerilog(RocketSerilogOptions) IConventionHostBuilder
Uses the serilog.
UseSerilogRequestLogging() IConventionHostBuilder
Uses the serilog request logging.
UseSwashbuckle() IConventionHostBuilder
Adds fluent validation.
UseSwashbuckleNewtonsoftJson() IConventionHostBuilder
Adds fluent validation.
With<IConventionHostBuilder, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.
WithFluentValidationMediatR() IConventionHostBuilder
Adds fluent validation.