Show / Hide Table of Contents

    Class ServiceContext

    The Umbraco ServiceContext, which provides access to the following services: IContentService, IContentTypeService, IDataTypeService, IFileService, ILocalizationService and IMediaService.

    Inheritance
    System.Object
    Namespace:System.Dynamic.ExpandoObject
    Assembly:Umbraco.Core.dll
    Syntax
    public class ServiceContext

    Constructors

    ServiceContext(RepositoryFactory, IScopeUnitOfWorkProvider, CacheHelper, ILogger, IEventMessagesFactory)

    Creates a service context with a RepositoryFactory which is used to construct Services

    Declaration
    public ServiceContext(RepositoryFactory repositoryFactory, IScopeUnitOfWorkProvider provider, CacheHelper cache, ILogger logger, IEventMessagesFactory eventMessagesFactory)
    Parameters
    Type Name Description
    RepositoryFactory repositoryFactory
    IScopeUnitOfWorkProvider provider
    CacheHelper cache
    ILogger logger
    IEventMessagesFactory eventMessagesFactory

    ServiceContext(IContentService, IMediaService, IContentTypeService, IDataTypeService, IFileService, ILocalizationService, IPackagingService, IEntityService, IRelationService, IMemberGroupService, IMemberTypeService, IMemberService, IUserService, ISectionService, IApplicationTreeService, ITagService, INotificationService, ILocalizedTextService, IAuditService, IDomainService, ITaskService, IMacroService, IPublicAccessService, IExternalLoginService, IMigrationEntryService, IRedirectUrlService, IConsentService)

    public ctor - will generally just be used for unit testing all items are optional and if not specified, the defaults will be used

    Declaration
    public ServiceContext(IContentService contentService = null, IMediaService mediaService = null, IContentTypeService contentTypeService = null, IDataTypeService dataTypeService = null, IFileService fileService = null, ILocalizationService localizationService = null, IPackagingService packagingService = null, IEntityService entityService = null, IRelationService relationService = null, IMemberGroupService memberGroupService = null, IMemberTypeService memberTypeService = null, IMemberService memberService = null, IUserService userService = null, ISectionService sectionService = null, IApplicationTreeService treeService = null, ITagService tagService = null, INotificationService notificationService = null, ILocalizedTextService localizedTextService = null, IAuditService auditService = null, IDomainService domainService = null, ITaskService taskService = null, IMacroService macroService = null, IPublicAccessService publicAccessService = null, IExternalLoginService externalLoginService = null, IMigrationEntryService migrationEntryService = null, IRedirectUrlService redirectUrlService = null, IConsentService consentService = null)
    Parameters
    Type Name Description
    IContentService contentService
    IMediaService mediaService
    IContentTypeService contentTypeService
    IDataTypeService dataTypeService
    IFileService fileService
    ILocalizationService localizationService
    IPackagingService packagingService
    IEntityService entityService
    IRelationService relationService
    IMemberGroupService memberGroupService
    IMemberTypeService memberTypeService
    IMemberService memberService
    IUserService userService
    ISectionService sectionService
    IApplicationTreeService treeService
    ITagService tagService
    INotificationService notificationService
    ILocalizedTextService localizedTextService
    IAuditService auditService
    IDomainService domainService
    ITaskService taskService
    IMacroService macroService
    IPublicAccessService publicAccessService
    IExternalLoginService externalLoginService
    IMigrationEntryService migrationEntryService
    IRedirectUrlService redirectUrlService
    IConsentService consentService

    Properties

    ApplicationTreeService

    Gets the ApplicationTreeService

    Declaration
    public IApplicationTreeService ApplicationTreeService { get; }
    Property Value
    Type Description
    IApplicationTreeService

    AuditService

    Gets the IAuditService

    Declaration
    public IAuditService AuditService { get; }
    Property Value
    Type Description
    IAuditService

    ConsentService

    Gets the IConsentService implementation.

    Declaration
    public IConsentService ConsentService { get; }
    Property Value
    Type Description
    IConsentService

    ContentService

    Gets the IContentService

    Declaration
    public IContentService ContentService { get; }
    Property Value
    Type Description
    IContentService

    ContentTypeService

    Gets the IContentTypeService

    Declaration
    public IContentTypeService ContentTypeService { get; }
    Property Value
    Type Description
    IContentTypeService

    DataTypeService

    Gets the IDataTypeService

    Declaration
    public IDataTypeService DataTypeService { get; }
    Property Value
    Type Description
    IDataTypeService

    DomainService

    Gets the IDomainService

    Declaration
    public IDomainService DomainService { get; }
    Property Value
    Type Description
    IDomainService

    EntityService

    Gets the IEntityService

    Declaration
    public IEntityService EntityService { get; }
    Property Value
    Type Description
    IEntityService

    ExternalLoginService

    Declaration
    public IExternalLoginService ExternalLoginService { get; }
    Property Value
    Type Description
    IExternalLoginService

    FileService

    Gets the IFileService

    Declaration
    public IFileService FileService { get; }
    Property Value
    Type Description
    IFileService

    LocalizationService

    Gets the ILocalizationService

    Declaration
    public ILocalizationService LocalizationService { get; }
    Property Value
    Type Description
    ILocalizationService

    MacroService

    Gets the IMacroService

    Declaration
    public IMacroService MacroService { get; }
    Property Value
    Type Description
    IMacroService

    MediaService

    Gets the IMediaService

    Declaration
    public IMediaService MediaService { get; }
    Property Value
    Type Description
    IMediaService

    MemberGroupService

    Gets the MemberGroupService

    Declaration
    public IMemberGroupService MemberGroupService { get; }
    Property Value
    Type Description
    IMemberGroupService

    MemberService

    Gets the MemberService

    Declaration
    public IMemberService MemberService { get; }
    Property Value
    Type Description
    IMemberService

    MemberTypeService

    Gets the MemberTypeService

    Declaration
    public IMemberTypeService MemberTypeService { get; }
    Property Value
    Type Description
    IMemberTypeService

    MigrationEntryService

    Gets the IMigrationEntryService

    Declaration
    public IMigrationEntryService MigrationEntryService { get; }
    Property Value
    Type Description
    IMigrationEntryService

    NotificationService

    Gets the INotificationService

    Declaration
    public INotificationService NotificationService { get; }
    Property Value
    Type Description
    INotificationService

    PackagingService

    Gets the PackagingService

    Declaration
    public IPackagingService PackagingService { get; }
    Property Value
    Type Description
    IPackagingService

    PublicAccessService

    Gets the IPublicAccessService

    Declaration
    public IPublicAccessService PublicAccessService { get; }
    Property Value
    Type Description
    IPublicAccessService

    RedirectUrlService

    Gets the RedirectUrlService.

    Declaration
    public IRedirectUrlService RedirectUrlService { get; }
    Property Value
    Type Description
    IRedirectUrlService

    RelationService

    Gets the IRelationService

    Declaration
    public IRelationService RelationService { get; }
    Property Value
    Type Description
    IRelationService

    SectionService

    Gets the SectionService

    Declaration
    public ISectionService SectionService { get; }
    Property Value
    Type Description
    ISectionService

    ServerRegistrationService

    Gets the ServerRegistrationService

    Declaration
    public IServerRegistrationService ServerRegistrationService { get; }
    Property Value
    Type Description
    IServerRegistrationService

    TagService

    Gets the ITagService

    Declaration
    public ITagService TagService { get; }
    Property Value
    Type Description
    ITagService

    TaskService

    Gets the ITaskService

    Declaration
    public ITaskService TaskService { get; }
    Property Value
    Type Description
    ITaskService

    TextService

    Gets the ILocalizedTextService

    Declaration
    public ILocalizedTextService TextService { get; }
    Property Value
    Type Description
    ILocalizedTextService

    UserService

    Gets the UserService

    Declaration
    public IUserService UserService { get; }
    Property Value
    Type Description
    IUserService
    Back to top Copyright © 2016 Umbraco
    Generated by DocFX