Skip to content

Commit

Permalink
final few ?
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Feb 13, 2025
1 parent b9eb4cb commit 30decfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions uSync.BackOffice/SyncHandlers/SyncHandlerRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,10 @@ virtual public async Task<SyncAttempt<TObject>> ImportSecondPassAsync(XElement n
protected virtual IEnumerable<uSyncAction> CleanFolder(string cleanFile, bool reportOnly, bool flat)
=> CleanFolderAsync(cleanFile, reportOnly, flat).Result;

/// <summary>
/// given a folder we calculate what items we can remove, because they are
/// not in one the files in the folder.
/// </summary>
protected virtual async Task<IEnumerable<uSyncAction>> CleanFolderAsync(string cleanFile, bool reportOnly, bool flat)
{
var folder = Path.GetDirectoryName(cleanFile);
Expand Down Expand Up @@ -750,7 +754,7 @@ protected virtual IEnumerable<uSyncAction> DeleteMissingItems(int parentId, IEnu
/// <summary>
/// Remove an items that are not listed in the GUIDs to keep.
/// </summary>
/// <param name="parentId">parent item that all keys will be under</param>
/// <param name="key">parent item that all keys will be under</param>
/// <param name="keysToKeep">list of GUIDs of items we don't want to delete</param>
/// <param name="reportOnly">will just report what would happen (doesn't do the delete)</param>
/// <returns>list of delete actions</returns>
Expand Down Expand Up @@ -1555,7 +1559,6 @@ public virtual async Task HandleAsync(DeletedNotification<TObject> notification,
/// <summary>
/// Handle the Umbraco Saved notification for items.
/// </summary>
/// <param name="notification"></param>
public virtual async Task HandleAsync(SavedNotification<TObject> notification, CancellationToken cancellationToken)
{
if (!ShouldProcessEvent()) return;
Expand Down Expand Up @@ -1586,7 +1589,6 @@ public virtual async Task HandleAsync(SavedNotification<TObject> notification, C
/// <summary>
/// Handle the Umbraco moved notification for items.
/// </summary>
/// <param name="notification"></param>
public virtual async Task HandleAsync(MovedNotification<TObject> notification, CancellationToken cancellationToken)
{
try
Expand Down

0 comments on commit 30decfb

Please sign in to comment.