DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ServicesConfiguration

    Provides extension methods to register DataWeb SendGrid email services into the dependency injection container.

    Inheritance
    object
    ServicesConfiguration
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Email.SendGrid
    Assembly: DataWeb.Email.SendGrid.dll
    Syntax
    public static class ServicesConfiguration

    Methods

    AddDataWebEmailSendGrid(IServiceCollection, IConfiguration, ConfigurationAppSettings)

    Registers the SendGrid client and the IEmailService implementation into the service collection.

    Declaration
    public static IServiceCollection AddDataWebEmailSendGrid(this IServiceCollection services, IConfiguration configuration, ConfigurationAppSettings appSettings)
    Parameters
    Type Name Description
    IServiceCollection services

    The IServiceCollection to add the services to.

    IConfiguration configuration

    The application configuration instance.

    ConfigurationAppSettings appSettings

    The application settings containing the SendGrid API key.

    Returns
    Type Description
    IServiceCollection

    The same IServiceCollection instance for chaining.

    In this article
    Back to top Generated by DocFX