af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
// <copyright file="IScheduledTask.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace MediaBrowser.Model.Tasks;
|
|
using global::System;
|
|
using global::System.Collections.Generic;
|
|
using global::System.Threading;
|
|
using global::System.Threading.Tasks;
|
|
|
|
/// <summary>
|
|
/// Interface IScheduledTaskWorker.
|
|
/// </summary>
|
|
public interface IScheduledTask
|
|
{
|
|
/// <summary>
|
|
/// Gets the name of the task.
|
|
/// </summary>
|
|
/// <value>The name.</value>
|
|
string Name { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the key of the task.
|
|
/// </summary>
|
|
string Key { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the description.
|
|
/// </summary>
|
|
/// <value>The description.</value>
|
|
string Description { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the category.
|
|
/// </summary>
|
|
/// <value>The category.</value>
|
|
string Category { get; }
|
|
|
|
/// <summary>
|
|
/// Executes the task.
|
|
/// </summary>
|
|
/// <param name="progress">The progress.</param>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>Task.</returns>
|
|
Task ExecuteAsync(IProgress<double> progress, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Gets the default triggers that define when the task will run.
|
|
/// </summary>
|
|
/// <returns>The default triggers that define when the task will run.</returns>
|
|
IEnumerable<TaskTriggerInfo> GetDefaultTriggers();
|
|
}
|