November Happy Hour will be moved to Thursday December 5th.

Interface IRootServiceScopeFactory

Root service provider factory can be used in the case of background threads, jobs or scenarion when there is no httpcontext The purpose of the this interface is threads can create a scoped service provider from root service provider.

Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public interface IRootServiceScopeFactory

Methods

CreateRootScope()

Creates a new Microsoft.Extensions.DependencyInjection.IServiceScope that can be used to resolve scoped services. The new scope is created from root service provider.

Declaration
IServiceScope CreateRootScope()
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceScope

Extension Methods