using Elsa.Workflows.Runtime.Entities;
using Elsa.Workflows.Runtime.Filters;
namespace Elsa.Workflows.Runtime;
///
/// Manages bookmarks.
///
public interface IBookmarkManager
{
///
/// Deletes all bookmarks matching the specified filter.
///
/// The filter.
/// An optional cancellation token.
/// The number of deleted bookmarks.
Task DeleteManyAsync(BookmarkFilter filter, CancellationToken cancellationToken = default);
///
/// Saves the specified bookmark and raises a notification that the bookmark has been saved.
///
Task SaveAsync(StoredBookmark bookmark, CancellationToken cancellationToken = default);
}