Search Results for

    Show / Hide Table of Contents

    Class CacheInstructionService

    Implements providing a service for retrieving and saving cache instructions.

    Inheritance
    System.Object
    RepositoryService
    Namespace: Umbraco.Cms.Core.Services.Implement
    Assembly: cs.temp.dll.dll
    Syntax
    public class CacheInstructionService : RepositoryService

    Constructors

    CacheInstructionService(IScopeProvider, ILoggerFactory, IEventMessagesFactory, ICacheInstructionRepository, IProfilingLogger, ILogger<CacheInstructionService>, IOptions<GlobalSettings>)

    Initializes a new instance of the CacheInstructionService class.

    Declaration
    public CacheInstructionService(IScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, ICacheInstructionRepository cacheInstructionRepository, IProfilingLogger profilingLogger, ILogger<CacheInstructionService> logger, IOptions<GlobalSettings> globalSettings)
    Parameters
    Type Name Description
    IScopeProvider provider
    ILoggerFactory loggerFactory
    IEventMessagesFactory eventMessagesFactory
    ICacheInstructionRepository cacheInstructionRepository
    IProfilingLogger profilingLogger
    ILogger<CacheInstructionService> logger
    IOptions<GlobalSettings> globalSettings

    Methods

    DeliverInstructions(IEnumerable<RefreshInstruction>, String)

    Declaration
    public void DeliverInstructions(IEnumerable<RefreshInstruction> instructions, string localIdentity)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<RefreshInstruction> instructions
    System.String localIdentity

    DeliverInstructionsInBatches(IEnumerable<RefreshInstruction>, String)

    Declaration
    public void DeliverInstructionsInBatches(IEnumerable<RefreshInstruction> instructions, string localIdentity)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<RefreshInstruction> instructions
    System.String localIdentity

    GetMaxInstructionId()

    Declaration
    public int GetMaxInstructionId()
    Returns
    Type Description
    System.Int32

    IsColdBootRequired(Int32)

    Declaration
    public bool IsColdBootRequired(int lastId)
    Parameters
    Type Name Description
    System.Int32 lastId
    Returns
    Type Description
    System.Boolean

    IsInstructionCountOverLimit(Int32, Int32, out Int32)

    Declaration
    public bool IsInstructionCountOverLimit(int lastId, int limit, out int count)
    Parameters
    Type Name Description
    System.Int32 lastId
    System.Int32 limit
    System.Int32 count
    Returns
    Type Description
    System.Boolean

    ProcessInstructions(CacheRefresherCollection, ServerRole, CancellationToken, String, DateTime, Int32)

    Declaration
    public ProcessInstructionsResult ProcessInstructions(CacheRefresherCollection cacheRefreshers, ServerRole serverRole, CancellationToken cancellationToken, string localIdentity, DateTime lastPruned, int lastId)
    Parameters
    Type Name Description
    CacheRefresherCollection cacheRefreshers
    ServerRole serverRole
    CancellationToken cancellationToken
    System.String localIdentity
    System.DateTime lastPruned
    System.Int32 lastId
    Returns
    Type Description
    ProcessInstructionsResult
    In This Article
    • Constructors
      • CacheInstructionService(IScopeProvider, ILoggerFactory, IEventMessagesFactory, ICacheInstructionRepository, IProfilingLogger, ILogger<CacheInstructionService>, IOptions<GlobalSettings>)
    • Methods
      • DeliverInstructions(IEnumerable<RefreshInstruction>, String)
      • DeliverInstructionsInBatches(IEnumerable<RefreshInstruction>, String)
      • GetMaxInstructionId()
      • IsColdBootRequired(Int32)
      • IsInstructionCountOverLimit(Int32, Int32, out Int32)
      • ProcessInstructions(CacheRefresherCollection, ServerRole, CancellationToken, String, DateTime, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX