Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ILastSyncedManager

    Handles saving and pruning of the LastSynced database table.

    Namespace: Umbraco.Cms.Core.Sync
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ILastSyncedManager

    Methods

    View Source

    DeleteOlderThanAsync(DateTime)

    Deletes entries older than the set parameter. This method also removes any entries where both IDs are higher than the lowest synced CacheInstruction ID.

    Declaration
    Task DeleteOlderThanAsync(DateTime date)
    Parameters
    Type Name Description
    DateTime date
    Returns
    Type Description
    Task
    View Source

    GetLastSyncedExternalAsync()

    Fetches the last synced external ID from the database.

    Declaration
    Task<int?> GetLastSyncedExternalAsync()
    Returns
    Type Description
    Task<int?>

    The External ID from the database.

    View Source

    GetLastSyncedInternalAsync()

    Fetches the last synced internal ID from the database.

    Declaration
    Task<int?> GetLastSyncedInternalAsync()
    Returns
    Type Description
    Task<int?>

    The Internal ID from the database.

    View Source

    SaveLastSyncedExternalAsync(int)

    Saves the last synced External ID to the Database.

    Declaration
    Task SaveLastSyncedExternalAsync(int id)
    Parameters
    Type Name Description
    int id

    The last synced external ID.

    Returns
    Type Description
    Task
    View Source

    SaveLastSyncedInternalAsync(int)

    Saves the last synced Internal ID to the Database.

    Declaration
    Task SaveLastSyncedInternalAsync(int id)
    Parameters
    Type Name Description
    int id

    The last synced internal ID.

    Returns
    Type Description
    Task
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX