IServicesBuilder Interface

Summary

IServicesBuilder. Implements the IConventionBuilder<TBuilder, TConvention, TDelegate> Implements the IServiceConvention Implements the IServiceConventionContext Implements the ServiceConventionDelegate
graph BT Type-.->Interface0["IConventionBuilder<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>"] Type-.->Interface1["IConventionContainer<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>"] Type-.->Interface2["IServiceConventionContext"] click Interface2 "/api/Rocket.Surgery.Extensions.DependencyInjection/IServiceConventionContext" Type-.->Interface3["IConventionContext"] click Interface3 "/api/Rocket.Surgery.Conventions/IConventionContext" Type["IServicesBuilder"] class Type type-node Implementing0["ServicesBuilder"]-.->Type click Implementing0 "/api/Rocket.Surgery.Extensions.DependencyInjection/ServicesBuilder" Implementing1["AutofacBuilder"]-.->Type click Implementing1 "/api/Rocket.Surgery.Extensions.Autofac/AutofacBuilder"

Syntax

public interface IServicesBuilder : 
    IConventionBuilder<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>, 
    IConventionContainer<IServicesBuilder, IServiceConvention, ServiceConventionDelegate>, 
    IServiceConventionContext, IConventionContext

Methods

Name Value Summary
Build() IServiceProvider
Build the service provider from this container

Extension Methods

Name Value Summary
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<IServicesBuilder, TV>(Expression<Func<IServicesBuilder, TV>>, TV) T
Sets the backing value.
UseMartenConnectionString(Func<NpgsqlConnection>) IServiceConventionContext
Uses marten.
UseMartenConnectionString(Func<string>) IServiceConventionContext
Uses marten.
UseMartenConnectionString(string) IServiceConventionContext
Uses marten.
UseMartenLightweightTracking() IServiceConventionContext
Uses marten.
UseMartenUnitOfWork() IServiceConventionContext
Uses marten.
UseMartenWithDirtyTracking() IServiceConventionContext
Uses marten.
UseMediatR(MediatRServiceConfiguration) IServiceConventionContext
Uses MediatR.
UseMediatR() IServiceConventionContext
Uses MediatR.
With<IServicesBuilder, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.
WithMarten() IServiceConventionContext
Withes the marten.

See Also