Cleanup some warnings

This commit is contained in:
Jordan Brown
2021-02-02 10:42:53 -05:00
parent d98287e2e2
commit cbaf57c9cb
2 changed files with 11 additions and 2 deletions
@@ -152,6 +152,16 @@ namespace Tgstation.Server.Host.Components
}
}
/// <summary>
/// The <see cref="JobEntrypoint"/> for updating the repository.
/// </summary>
/// <param name="core">The <see cref="IInstanceCore"/> for the <paramref name="job"/>.</param>
/// <param name="databaseContextFactory">The <see cref="IDatabaseContextFactory"/> for the <paramref name="job"/>.</param>
/// <param name="job">The <see cref="Job"/> being run.</param>
/// <param name="progressReporter">The progress reporter action for the <paramref name="job"/>.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation.</param>
/// <returns>A <see cref="Task"/> representing the running operation.</returns>
#pragma warning disable CA1502 // Cyclomatic complexity
Task RepositoryAutoUpdateJob(
IInstanceCore core,
IDatabaseContextFactory databaseContextFactory,
@@ -350,6 +360,7 @@ namespace Tgstation.Server.Host.Components
progressReporter(5 * ProgressStep);
});
#pragma warning restore CA1502 // Cyclomatic complexity
/// <summary>
/// Pull the repository and compile for every set of given <paramref name="minutes"/>
@@ -34,9 +34,7 @@ namespace Tgstation.Server.Host.Jobs
/// <param name="jobCancellationToken">A <see cref="CancellationToken"/> that will cancel the <paramref name="job"/></param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation</param>
/// <returns>A <see cref="Task"/> representing the <see cref="Job"/></returns>
#pragma warning disable CA1068 // CancellationToken parameters must come last https://github.com/dotnet/roslyn-analyzers/issues/1816
Task WaitForJobCompletion(Job job, User canceller, CancellationToken jobCancellationToken, CancellationToken cancellationToken);
#pragma warning restore CA1068 // CancellationToken parameters must come last
/// <summary>
/// Cancels a give <paramref name="job"/>