You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
555 B
C#
21 lines
555 B
C#
namespace DS.Module.SMS;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// 注入短信服务
|
|
/// </summary>
|
|
public static class SmsModuleInstall
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="services"></param>
|
|
/// <exception cref="ArgumentNullException"></exception>
|
|
public static void AddSmsModuleInstall(this IServiceCollection services)
|
|
{
|
|
if (services == null) throw new ArgumentNullException(nameof(services));
|
|
|
|
services.AddScoped<ISendMessageService, SendMessageService>();
|
|
}
|
|
} |