Exemple #1
0
 public SendGridEmailProvider(IOptions <SendGridOptions> configuration)
 {
     _options = configuration.Value;
 }
 public static IServiceCollection AddSendGridEmailProvider(this IServiceCollection services, [NotNull] SendGridOptions options)
 {
     return(services.AddSendGridEmailProvider(_ =>
     {
         _.DisplayEmail = options.DisplayEmail;
         _.DisplayName = options.DisplayName;
         _.Key = options.Key;
     }));
 }