Files
aliasvault/apps/server/Services/AliasVault.TaskRunner/Tasks/Interfaces/IMaintenanceTask.cs
2025-04-30 19:03:18 +02:00

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);
}