IHostingConventionContext Interface

Summary

IHostingConventionContext Implements the IConventionContext
graph BT Type-.->Interface0["IConventionContext"] click Interface0 "/api/Rocket.Surgery.Conventions/IConventionContext" Type-.->Interface1["IRocketHostBuilder"] click Interface1 "/api/Rocket.Surgery.Hosting/IRocketHostBuilder" Type-.->Interface2["IConventionHostBuilder"] click Interface2 "/api/Rocket.Surgery.Conventions/IConventionHostBuilder" Type["IHostingConventionContext"] class Type type-node

Syntax

public interface IHostingConventionContext : IConventionContext, IRocketHostBuilder, 
    IConventionHostBuilder

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
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
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)
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
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<IHostingConventionContext, TV>(Expression<Func<IHostingConventionContext, TV>>, TV) T
Sets the backing value.
UseAppDomain(AppDomain, DiagnosticSource) IRocketHostBuilder
Uses the application domain.
UseAppMetrics(IMetricsBuilder, IHealthBuilder) IConventionHostBuilder
Uses the application metrics.
UseAssemblies(IEnumerable<Assembly>, DiagnosticSource) IRocketHostBuilder
Uses the assemblies.
UseAssemblyCandidateFinder(IAssemblyCandidateFinder) IRocketHostBuilder
Uses the assembly candidate finder.
UseAssemblyProvider(IAssemblyProvider) IRocketHostBuilder
Uses the assembly provider.
UseAutofac(ContainerBuilder) IRocketHostBuilder
Uses the autofac.
UseAutoMapper(AutoMapperOptions) IConventionHostBuilder
Uses AutoMapper.
UseCommandLine(Action<ConsoleLifetimeOptions>) IRocketHostBuilder
Uses the command line.
UseCommandLine() IRocketHostBuilder
Uses the command line.
UseDefaultAppMetrics() IConventionHostBuilder
Uses the default application metrics.
UseDependencyContext(DependencyContext, DiagnosticSource) IRocketHostBuilder
Uses the dependency context.
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
UseDiagnosticLogging(Action<ILoggingBuilder>) IRocketHostBuilder
Uses the diagnostic logging.
UseDiagnosticSource(DiagnosticSource) IRocketHostBuilder
Uses the diagnostic source.
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.
UseScanner(IConventionScanner) IRocketHostBuilder
Uses the scanner.
UseSerilog(RocketSerilogOptions) IConventionHostBuilder
Uses the serilog.
UseSerilogRequestLogging() IConventionHostBuilder
Uses the serilog request logging.
UseSwashbuckle() IConventionHostBuilder
Adds fluent validation.
UseSwashbuckleNewtonsoftJson() IConventionHostBuilder
Adds fluent validation.
With<IHostingConventionContext, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.
WithFluentValidationMediatR() IConventionHostBuilder
Adds fluent validation.

See Also