mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-31 12:58:28 +01:00
Fix warnings MediaBrowser.Model
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
public interface IConfigurableScheduledTask
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
|
||||
@@ -4,7 +4,7 @@ using MediaBrowser.Model.Events;
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface IScheduledTaskWorker
|
||||
/// Interface IScheduledTaskWorker.
|
||||
/// </summary>
|
||||
public interface IScheduledTaskWorker : IDisposable
|
||||
{
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -4,12 +4,12 @@ using Microsoft.Extensions.Logging;
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface ITaskTrigger
|
||||
/// Interface ITaskTrigger.
|
||||
/// </summary>
|
||||
public interface ITaskTrigger
|
||||
{
|
||||
/// <summary>
|
||||
/// Fires when the trigger condition is satisfied and the task should run
|
||||
/// Fires when the trigger condition is satisfied and the task should run.
|
||||
/// </summary>
|
||||
event EventHandler<EventArgs> Triggered;
|
||||
|
||||
@@ -19,12 +19,12 @@ namespace MediaBrowser.Model.Tasks
|
||||
TaskOptions TaskOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Stars waiting for the trigger action
|
||||
/// Stars waiting for the trigger action.
|
||||
/// </summary>
|
||||
void Start(TaskResult lastResult, ILogger logger, string taskName, bool isApplicationStartup);
|
||||
|
||||
/// <summary>
|
||||
/// Stops waiting for the trigger action
|
||||
/// Stops waiting for the trigger action.
|
||||
/// </summary>
|
||||
void Stop();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Class ScheduledTaskHelpers
|
||||
/// Class ScheduledTaskHelpers.
|
||||
/// </summary>
|
||||
public static class ScheduledTaskHelpers
|
||||
{
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum TaskCompletionStatus
|
||||
/// Enum TaskCompletionStatus.
|
||||
/// </summary>
|
||||
public enum TaskCompletionStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// The completed
|
||||
/// The completed.
|
||||
/// </summary>
|
||||
Completed,
|
||||
|
||||
/// <summary>
|
||||
/// The failed
|
||||
/// The failed.
|
||||
/// </summary>
|
||||
Failed,
|
||||
|
||||
/// <summary>
|
||||
/// Manually cancelled by the user
|
||||
/// Manually cancelled by the user.
|
||||
/// </summary>
|
||||
Cancelled,
|
||||
|
||||
/// <summary>
|
||||
/// Aborted due to a system failure or shutdown
|
||||
/// Aborted due to a system failure or shutdown.
|
||||
/// </summary>
|
||||
Aborted
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Class TaskInfo
|
||||
/// Class TaskInfo.
|
||||
/// </summary>
|
||||
public class TaskInfo
|
||||
{
|
||||
@@ -70,7 +72,7 @@ namespace MediaBrowser.Model.Tasks
|
||||
/// </summary>
|
||||
public TaskInfo()
|
||||
{
|
||||
Triggers = new TaskTriggerInfo[] { };
|
||||
Triggers = Array.Empty<TaskTriggerInfo>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
public class TaskOptions
|
||||
|
||||
@@ -3,7 +3,7 @@ using System;
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Class TaskExecutionInfo
|
||||
/// Class TaskExecutionInfo.
|
||||
/// </summary>
|
||||
public class TaskResult
|
||||
{
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum TaskState
|
||||
/// Enum TaskState.
|
||||
/// </summary>
|
||||
public enum TaskState
|
||||
{
|
||||
/// <summary>
|
||||
/// The idle
|
||||
/// The idle.
|
||||
/// </summary>
|
||||
Idle,
|
||||
|
||||
/// <summary>
|
||||
/// The cancelling
|
||||
/// The cancelling.
|
||||
/// </summary>
|
||||
Cancelling,
|
||||
|
||||
/// <summary>
|
||||
/// The running
|
||||
/// The running.
|
||||
/// </summary>
|
||||
Running
|
||||
}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
/// <summary>
|
||||
/// Class TaskTriggerInfo
|
||||
/// Class TaskTriggerInfo.
|
||||
/// </summary>
|
||||
public class TaskTriggerInfo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user