A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class ActivatorUtilities

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
ActivatorUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Internal
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public static class ActivatorUtilities

Methods

GetServiceOrCreateInstance(IServiceLocator, Type)

Declaration
public static object GetServiceOrCreateInstance(IServiceLocator locator, Type type)
Parameters
Type Name Description
IServiceLocator locator
System.Type type
Returns
Type Description
System.Object

GetServiceOrCreateInstance<T>(IServiceLocator)

Declaration
public static T GetServiceOrCreateInstance<T>(IServiceLocator locator)
    where T : class
Parameters
Type Name Description
IServiceLocator locator
Returns
Type Description
T
Type Parameters
Name Description
T