Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ServiceProvider

    Gets a request scoped service provider when available.

    Declaration
    IServiceProvider? ServiceProvider { get; }
    Property Value
    Type Description
    System.Nullable<IServiceProvider>
    Remarks

    Can be null.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • ServiceProvider
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX