EmailServiceCollectionExtensions
Namespace: Proffer.Email
Microsoft.Extensions.DependencyInjection.IServiceCollection extension methods.
public static class EmailServiceCollectionExtensions
Inheritance Object → EmailServiceCollectionExtensions
Methods
AddEmail(IServiceCollection, IConfigurationRoot, String)
Registers Proffer.Email services and configures it from the given at section .
public static IServiceCollection AddEmail(IServiceCollection services, IConfigurationRoot configurationRoot, string sectionName)
Parameters
services
IServiceCollection
The service collection.
configurationRoot
IConfigurationRoot
The configuration root.
sectionName
String
The name of the section.
Returns
IServiceCollection
The service collection.
AddEmail(IServiceCollection, IConfigurationSection)
Registers Proffer.Email services and configures it with the given section.
public static IServiceCollection AddEmail(IServiceCollection services, IConfigurationSection configurationSection)
Parameters
services
IServiceCollection
The service collection.
configurationSection
IConfigurationSection
The configuration section.
Returns
IServiceCollection
The service collection.