Search Results for

    Show / Hide Table of Contents
    View Source

    Class RepositoryService

    Represents a service that works on top of repositories.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class RepositoryService : IService

    Constructors

    View Source

    RepositoryService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory)

    Initializes a new instance of the RepositoryService class.

    Declaration
    protected RepositoryService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory)
    Parameters
    Type Name Description
    ICoreScopeProvider provider

    The scope provider for unit of work operations.

    ILoggerFactory loggerFactory

    The logger factory for creating loggers.

    IEventMessagesFactory eventMessagesFactory

    The factory for creating event messages.

    Properties

    View Source

    EventMessagesFactory

    Gets the event messages factory.

    Declaration
    protected IEventMessagesFactory EventMessagesFactory { get; }
    Property Value
    Type Description
    IEventMessagesFactory
    View Source

    LoggerFactory

    Gets the logger factory.

    Declaration
    protected ILoggerFactory LoggerFactory { get; }
    Property Value
    Type Description
    ILoggerFactory
    View Source

    ScopeProvider

    Gets the scope provider.

    Declaration
    protected ICoreScopeProvider ScopeProvider { get; }
    Property Value
    Type Description
    ICoreScopeProvider

    Methods

    View Source

    Query<T>()

    Creates a query for the specified type.

    Declaration
    protected IQuery<T> Query<T>()
    Returns
    Type Description
    IQuery<T>

    A new query instance.

    Type Parameters
    Name Description
    T

    The type to query.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX