ContainerNetCoreExtensions
Wrappers for improving consistency with .NET Core Conventions
Assembly: ServiceStack.dll
View Source
Declaration
public static class ContainerNetCoreExtensions
Methods
AddScoped(Container, Type)
View Source
Declaration
public static Container AddScoped(this Container services, Type serviceType)
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Type | serviceType |
AddScoped(Container, Type, Type)
View Source
Declaration
public static Container AddScoped(this Container services, Type serviceType, Type implementationType)
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Type | serviceType |
System.Type | implementationType |
AddScoped<TService>(Container)
View Source
Declaration
public static Container AddScoped<TService>(this Container services)
where TService : class
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
Type Parameters
TService
AddScoped<TService>(Container, Func<Container, TService>)
View Source
Declaration
public static Container AddScoped<TService>(this Container services, Func<Container, TService> implementationFactory)
where TService : class
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Func<Funq.Container,<TService>> | implementationFactory |
Type Parameters
TService
AddScoped<TService, TImplementation>(Container)
View Source
Declaration
public static Container AddScoped<TService, TImplementation>(this Container services)
where TService : class where TImplementation : class, TService
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
Type Parameters
TService
TImplementation
AddScoped<TService, TImplementation>(Container, Func<Container, TImplementation>)
View Source
Declaration
public static Container AddScoped<TService, TImplementation>(this Container services, Func<Container, TImplementation> implementationFactory)
where TService : class where TImplementation : class, TService
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Func<Funq.Container,<TImplementation>> | implementationFactory |
Type Parameters
TService
TImplementation
AddSingleton(Container, Type)
View Source
Declaration
public static Container AddSingleton(this Container services, Type serviceType)
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Type | serviceType |
AddSingleton(Container, Type, Type)
View Source
Declaration
public static Container AddSingleton(this Container services, Type serviceType, Type implementationType)
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Type | serviceType |
System.Type | implementationType |
AddSingleton<TService>(Container)
View Source
Declaration
public static Container AddSingleton<TService>(this Container services)
where TService : class
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
Type Parameters
TService
AddSingleton<TService>(Container, Func<Container, TService>)
View Source
Declaration
public static Container AddSingleton<TService>(this Container services, Func<Container, TService> implementationFactory)
where TService : class
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Func<Funq.Container,<TService>> | implementationFactory |
Type Parameters
TService
AddSingleton<TService, TImplementation>(Container)
View Source
Declaration
public static Container AddSingleton<TService, TImplementation>(this Container services)
where TService : class where TImplementation : class, TService
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
Type Parameters
TService
TImplementation
AddSingleton<TService>(Container, TService)
View Source
Declaration
public static Container AddSingleton<TService>(this Container services, TService implementationInstance)
where TService : class
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
<TService> | implementationInstance |
Type Parameters
TService
AddSingleton<TService, TImplementation>(Container, Func<Container, TImplementation>)
View Source
Declaration
public static Container AddSingleton<TService, TImplementation>(this Container services, Func<Container, TImplementation> implementationFactory)
where TService : class where TImplementation : class, TService
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Func<Funq.Container,<TImplementation>> | implementationFactory |
Type Parameters
TService
TImplementation
AddTransient(Container, Type)
View Source
Declaration
public static Container AddTransient(this Container services, Type serviceType)
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Type | serviceType |
AddTransient(Container, Type, Type)
View Source
Declaration
public static Container AddTransient(this Container services, Type serviceType, Type implementationType)
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Type | serviceType |
System.Type | implementationType |
AddTransient<TService>(Container)
View Source
Declaration
public static Container AddTransient<TService>(this Container services)
where TService : class
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
Type Parameters
TService
AddTransient<TService>(Container, Func<Container, TService>)
View Source
Declaration
public static Container AddTransient<TService>(this Container services, Func<Container, TService> implementationFactory)
where TService : class
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Func<Funq.Container,<TService>> | implementationFactory |
Type Parameters
TService
AddTransient<TService, TImplementation>(Container)
View Source
Declaration
public static Container AddTransient<TService, TImplementation>(this Container services)
where TService : class where TImplementation : class, TService
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
Type Parameters
TService
TImplementation
AddTransient<TService, TImplementation>(Container, Func<Container, TImplementation>)
View Source
Declaration
public static Container AddTransient<TService, TImplementation>(this Container services, Func<Container, TImplementation> implementationFactory)
where TService : class where TImplementation : class, TService
Returns
Funq.Container
Parameters
Type | Name |
---|---|
Funq.Container | services |
System.Func<Funq.Container,<TImplementation>> | implementationFactory |
Type Parameters
TService
TImplementation