mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-19 23:28:23 -04:00
27 lines
939 B
C#
27 lines
939 B
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="IMaintenanceTask.cs" company="lanedirt">
|
|
// Copyright (c) lanedirt. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
namespace AliasVault.TaskRunner.Tasks;
|
|
|
|
/// <summary>
|
|
/// Interface for maintenance tasks that can be executed by the TaskRunner.
|
|
/// </summary>
|
|
public interface IMaintenanceTask
|
|
{
|
|
/// <summary>
|
|
/// Gets the name of the task.
|
|
/// </summary>
|
|
string Name { get; }
|
|
|
|
/// <summary>
|
|
/// Executes the maintenance task.
|
|
/// </summary>
|
|
/// <param name="cancellationToken">Cancellation token.</param>
|
|
/// <returns>A task representing the asynchronous operation.</returns>
|
|
Task ExecuteAsync(CancellationToken cancellationToken);
|
|
}
|