Files
git.stella-ops.org/src/__Libraries/StellaOps.Doctor.Plugins.Cryptography/DependencyInjection/CryptographyPluginExtensions.cs

22 lines
752 B
C#

using Microsoft.Extensions.DependencyInjection;
using StellaOps.Doctor.Plugins;
namespace StellaOps.Doctor.Plugins.Cryptography.DependencyInjection;
/// <summary>
/// Extension methods for registering the Cryptography diagnostics plugin.
/// </summary>
public static class CryptographyPluginExtensions
{
/// <summary>
/// Adds the Cryptography diagnostics plugin to the service collection.
/// </summary>
/// <param name="services">The service collection.</param>
/// <returns>The service collection for chaining.</returns>
public static IServiceCollection AddDoctorCryptographyPlugin(this IServiceCollection services)
{
services.AddSingleton<IDoctorPlugin, CryptographyPlugin>();
return services;
}
}