Skip to main content

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
TypeName
Funq.Containerservices
System.TypeserviceType

AddScoped(Container, Type, Type)

View Source
Declaration
public static Container AddScoped(this Container services, Type serviceType, Type implementationType)
Returns

Funq.Container

Parameters
TypeName
Funq.Containerservices
System.TypeserviceType
System.TypeimplementationType

AddScoped<TService>(Container)

View Source
Declaration
public static Container AddScoped<TService>(this Container services)
where TService : class
Returns

Funq.Container

Parameters
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
System.TypeserviceType

AddSingleton(Container, Type, Type)

View Source
Declaration
public static Container AddSingleton(this Container services, Type serviceType, Type implementationType)
Returns

Funq.Container

Parameters
TypeName
Funq.Containerservices
System.TypeserviceType
System.TypeimplementationType

AddSingleton<TService>(Container)

View Source
Declaration
public static Container AddSingleton<TService>(this Container services)
where TService : class
Returns

Funq.Container

Parameters
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
<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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
System.TypeserviceType

AddTransient(Container, Type, Type)

View Source
Declaration
public static Container AddTransient(this Container services, Type serviceType, Type implementationType)
Returns

Funq.Container

Parameters
TypeName
Funq.Containerservices
System.TypeserviceType
System.TypeimplementationType

AddTransient<TService>(Container)

View Source
Declaration
public static Container AddTransient<TService>(this Container services)
where TService : class
Returns

Funq.Container

Parameters
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
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
TypeName
Funq.Containerservices
System.Func<Funq.Container,<TImplementation>>implementationFactory
Type Parameters
  • TService
  • TImplementation