IActivator Interface

An interface into System.Activator.CreateInstance``1 that also supports limited dependency injection (of System.IServiceProvider).

Namespace
Microsoft.AspNetCore.DataProtection.Internal
Assemblies
  • Microsoft.AspNetCore.DataProtection

Syntax

public interface IActivator
interface Microsoft.AspNetCore.DataProtection.Internal.IActivator

Methods

CreateInstance(System.Type, System.String)

Creates an instance of <em>implementationTypeName</em> and ensures that it is assignable to <em>expectedBaseType</em>.

Return type:System.Object
object CreateInstance(Type expectedBaseType, string implementationTypeName)