Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ReflectiveServiceConfigurationHelper

Inheritance
System.Object
ReflectiveServiceConfigurationHelper
Namespace: EPiServer.ServiceLocation.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class ReflectiveServiceConfigurationHelper : Object

Constructors

ReflectiveServiceConfigurationHelper()

Declaration
public ReflectiveServiceConfigurationHelper()

Methods

AddOptions(IServiceCollection, Type, ServiceInstanceScope)

Declaration
public static IServiceCollection AddOptions(IServiceCollection services, Type serviceType, ServiceInstanceScope lifetime)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
System.Type serviceType
ServiceInstanceScope lifetime
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

RegisterServiceAccessorDelegates(IServiceCollection, Type)

Declaration
public static void RegisterServiceAccessorDelegates(IServiceCollection registry, Type serviceType)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection registry
System.Type serviceType

TryRegisterServiceFactoryMember(IServiceCollection, IServiceConfiguration, Type, Type)

Declaration
public static bool TryRegisterServiceFactoryMember(IServiceCollection registry, IServiceConfiguration attribute, Type serviceType, Type type)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection registry
IServiceConfiguration attribute
System.Type serviceType
System.Type type
Returns
Type Description
System.Boolean

Extension Methods