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 SourceRepositoryService(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 SourceEventMessagesFactory
Gets the event messages factory.
Declaration
protected IEventMessagesFactory EventMessagesFactory { get; }
Property Value
| Type | Description |
|---|---|
| IEventMessagesFactory |
LoggerFactory
Gets the logger factory.
Declaration
protected ILoggerFactory LoggerFactory { get; }
Property Value
| Type | Description |
|---|---|
| ILoggerFactory |
ScopeProvider
Gets the scope provider.
Declaration
protected ICoreScopeProvider ScopeProvider { get; }
Property Value
| Type | Description |
|---|---|
| ICoreScopeProvider |
Methods
View SourceQuery<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. |