/// <summary>
 ///     Adds the SendGrid mailer system to dependency injection.
 /// </summary>
 /// <param name="services">The services.</param>
 /// <param name="settings">The settings.</param>
 /// <returns>IServiceCollection.</returns>
 /// <remarks>Will setup the mailer as the default</remarks>
 public static IServiceCollection AddSendGridMailer
 (
     this IServiceCollection services,
     SendGridMailerSettings settings
 )
 {
     return(services.AddMailer <SendGridMailer, SendGridMailerSettings>(settings));
 }
 /// <summary>
 /// Adds the safety mailer proxy for a SendGrid mailer to dependency injection.
 /// </summary>
 /// <param name="services">The services.</param>
 /// <param name="safetyMailerSettings">The safety mailer settings.</param>
 /// <param name="mailerSettings">The mailer settings.</param>
 /// <returns>IServiceCollection.</returns>
 public static IServiceCollection AddSafetyMailer
 (
     this IServiceCollection services,
     SafetyMailerSettings safetyMailerSettings,
     SendGridMailerSettings mailerSettings
 )
 {
     return(services
            .AddMailer <SafetyMailer <SendGridMailer>, SafetyMailerSettings, SendGridMailer, SendGridMailerSettings>(
                mailerSettings, safetyMailerSettings));
 }