using System.Application.Models;
using System.Application.Services.Implementation;
// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection
{
public static class ServiceCollectionExtensions
{
///
/// 添加短信发送提供商(仅单选一个提供商)
///
///
///
/// 提供商唯一名称,见 中 PropertyName
///
public static IServiceCollection AddSmsSenderProvider(
this IServiceCollection services,
string? name)
where TSmsSettings : class, ISmsSettings
=> SmsSenderBase.Add(services, name);
}
}