/// <summary> /// This method only flags orphaned rows for the CleanupFilesDeleteRowsAsync /// method that will actually delete the rows from the database. /// </summary> private async Task CleanupFilesSetFlagAsync(CancellationToken cancellationToken) { try { SnTrace.Database.Write(SnMaintenance.TracePrefix + "Cleanup files: setting the IsDeleted flag..."); await BlobStorage.CleanupFilesSetFlagAsync(cancellationToken).ConfigureAwait(false); } catch (Exception ex) { SnLog.WriteWarning("Error in file cleanup set flag background process. " + ex, EventId.RepositoryRuntime); } }