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 SourceDeleteOlderThanAsync(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 |
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. |
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. |
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 |
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 |