Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ICoreScopeProvider

    Provides scopes.

    Namespace: Umbraco.Cms.Core.Scoping
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ICoreScopeProvider

    Properties

    View Source

    Context

    Gets the scope context.

    Declaration
    IScopeContext Context { get; }
    Property Value
    Type Description
    IScopeContext

    Methods

    View Source

    CreateCoreScope(IsolationLevel, RepositoryCacheMode, IEventDispatcher, IScopedNotificationPublisher, Nullable<Boolean>, Boolean, Boolean)

    Creates an ambient scope.

    Declaration
    ICoreScope CreateCoreScope(IsolationLevel isolationLevel = IsolationLevel.Unspecified, RepositoryCacheMode repositoryCacheMode = RepositoryCacheMode.Unspecified, IEventDispatcher eventDispatcher = null, IScopedNotificationPublisher scopedNotificationPublisher = null, bool? scopeFileSystems = null, bool callContext = false, bool autoComplete = false)
    Parameters
    Type Name Description
    System.Data.IsolationLevel isolationLevel

    The transaction isolation level.

    RepositoryCacheMode repositoryCacheMode

    The repositories cache mode.

    IEventDispatcher eventDispatcher

    An optional events dispatcher.

    IScopedNotificationPublisher scopedNotificationPublisher

    An optional notification publisher.

    System.Nullable<System.Boolean> scopeFileSystems

    A value indicating whether to scope the filesystems.

    System.Boolean callContext

    A value indicating whether this scope should always be registered in the call context.

    System.Boolean autoComplete

    A value indicating whether this scope is auto-completed.

    Returns
    Type Description
    ICoreScope

    The created ambient scope.

    Remarks

    The created scope becomes the ambient scope.

    If an ambient scope already exists, it becomes the parent of the created scope.

    When the created scope is disposed, the parent scope becomes the ambient scope again.

    Parameters must be specified on the outermost scope, or must be compatible with the parents.

    Auto-completed scopes should be used for read-only operations ONLY. Do not use them if you do not understand the associated issues, such as the scope being completed even though an exception is thrown.

    View Source

    CreateQuery<T>()

    Creates an instance of IQuery<T>

    Declaration
    IQuery<T> CreateQuery<T>()
    Returns
    Type Description
    IQuery<T>
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX