31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
// -----------------------------------------------------------------------------
|
|
// SourcesPluginExtensions.cs
|
|
// Sprint: SPRINT_20260114_SOURCES_SETUP
|
|
// Task: 12.1 - Sources Doctor Plugin
|
|
// Description: DI extension for registering Sources Doctor Plugin
|
|
// -----------------------------------------------------------------------------
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
using StellaOps.Doctor.Plugins;
|
|
|
|
namespace StellaOps.Doctor.Plugins.Sources.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// Extension methods for registering the Sources Doctor plugin.
|
|
/// </summary>
|
|
public static class SourcesPluginExtensions
|
|
{
|
|
/// <summary>
|
|
/// Adds the Doctor Sources plugin to the service collection.
|
|
/// This plugin provides connectivity checks for advisory data sources.
|
|
/// </summary>
|
|
/// <param name="services">Service collection.</param>
|
|
/// <returns>Service collection for chaining.</returns>
|
|
public static IServiceCollection AddDoctorSourcesPlugin(this IServiceCollection services)
|
|
{
|
|
services.TryAddEnumerable(ServiceDescriptor.Singleton<IDoctorPlugin, SourcesPlugin>());
|
|
return services;
|
|
}
|
|
}
|