-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDevlordSettingsExtension.cs
More file actions
28 lines (25 loc) · 1.05 KB
/
DevlordSettingsExtension.cs
File metadata and controls
28 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DevlordSettingsExtension.cs" company="Lord Design">
// © 2022 Lord Design
// </copyright>
// <license type="GPL-3.0">
// You may use freely and commercially without modification; if you make changes, please share back to the
// community.
// </license>
// <author>Aaron Lord</author>
// --------------------------------------------------------------------------------------------------------------------
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Devlord.Utilities.Mail
{
public static class DevlordSettingsExtension
{
public static IServiceCollection AddDevlordMail(this IServiceCollection services,
IConfiguration namedConfigurationSection)
{
services.Configure<DevlordOptions>(namedConfigurationSection);
services.AddSingleton<IMailbotFactory, MailbotFactory>();
return services;
}
}
}