Interface IScopedServiceProvider
Provides access to a request scoped service provider when available for cases where IHttpContextAccessor is not available. e.g. No reference to AspNetCore.Http in core.
Namespace: Umbraco.Cms.Core.DependencyInjection
Assembly: Umbraco.Core.dll
Syntax
public interface IScopedServiceProvider
Properties
View SourceServiceProvider
Gets a request scoped service provider when available.
Declaration
IServiceProvider? ServiceProvider { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IServiceProvider> |
Remarks
Can be null.