Achieves 100% XML doc coverage on non-trivial types with CS1591 enforcement via Directory.Build.props. Coverage by project: - Butter: from 6.5% to 100% (DTOs, enums, MIME types) - Lactose: from ~28% to 100% (controllers, services, repos, jobs, models) - MilkStream.Client: from ~29% to 100% (all frontend services) Uses <inheritdoc /> on repository implementations (interfaces already documented) and full <summary>/<param>/<returns> tags elsewhere. Enums include member-level docs.
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using Microsoft.Extensions.Options;
|
|
|
|
namespace MilkStream.Client.Services;
|
|
|
|
/// <summary>
|
|
/// Provides access to media files (original, thumbnails, previews) via the API.
|
|
/// </summary>
|
|
public sealed class MediaService : AuthServiceBase {
|
|
/// <inheritdoc />
|
|
protected override HttpClient Client { get; init; }
|
|
/// <inheritdoc />
|
|
protected override ILogger Logger { get; init; }
|
|
|
|
/// <summary>
|
|
/// Initialises a new instance of the <see cref="MediaService"/> class.
|
|
/// </summary>
|
|
/// <param name="options">Service configuration options.</param>
|
|
/// <param name="httpClientFactory">Factory for creating HTTP clients.</param>
|
|
/// <param name="loginService">The login service for authentication.</param>
|
|
/// <param name="logger">Logger instance.</param>
|
|
public MediaService(
|
|
IOptions<ServiceOptions> options,
|
|
IHttpClientFactory httpClientFactory,
|
|
LoginService loginService,
|
|
ILogger<MediaService> logger
|
|
) : base(options, httpClientFactory, loginService, logger) {
|
|
Client = base.Client;
|
|
Logger = logger;
|
|
}
|
|
}
|