Fix warnings MediaBrowser.Model

This commit is contained in:
Bond_009
2020-02-04 01:49:27 +01:00
parent 176e850973
commit f47ad85011
290 changed files with 1132 additions and 290 deletions

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
namespace MediaBrowser.Model.Tasks
{
public interface IConfigurableScheduledTask

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
using System.Collections.Generic;
using System.Threading;

View File

@@ -4,7 +4,7 @@ using MediaBrowser.Model.Events;
namespace MediaBrowser.Model.Tasks
{
/// <summary>
/// Interface IScheduledTaskWorker
/// Interface IScheduledTaskWorker.
/// </summary>
public interface IScheduledTaskWorker : IDisposable
{

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

View File

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

View File

@@ -1,7 +1,7 @@
namespace MediaBrowser.Model.Tasks
{
/// <summary>
/// Class ScheduledTaskHelpers
/// Class ScheduledTaskHelpers.
/// </summary>
public static class ScheduledTaskHelpers
{

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
namespace MediaBrowser.Model.Tasks

View File

@@ -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
}

View File

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

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
namespace MediaBrowser.Model.Tasks
{
public class TaskOptions

View File

@@ -3,7 +3,7 @@ using System;
namespace MediaBrowser.Model.Tasks
{
/// <summary>
/// Class TaskExecutionInfo
/// Class TaskExecutionInfo.
/// </summary>
public class TaskResult
{

View File

@@ -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
}

View File

@@ -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
{