Table of Contents

Class Factory

Namespace
ToSic.Eav
Assembly
ToSic.Sxc.Dnn.Core.dll

The Eav DI Factory, used to construct various objects through Dependency Injection.

If possible avoid using this, as it's a workaround for code which is outside of the normal Dependency Injection and therefor a bad pattern.

[PublicApi("Careful - obsolete!")]
[Obsolete("Deprecated, please use Dnn 9 DI instead https://go.2sxc.org/brc-13-eav-factory")]
public class Factory
Inheritance
Factory

Methods

Resolve<T>()

Dependency Injection resolver with a known type as a parameter.

[Obsolete("Please use standard Dnn 9.4+ Dnn DI instead https://go.2sxc.org/brc-13-eav-factory")]
public static T Resolve<T>()

Returns

T

Type Parameters

T

The type / interface we need.