コード例 #1
0
ファイル: SendGridEmailProvider.cs プロジェクト: kudogit/BET
 public SendGridEmailProvider(IOptions <SendGridOptions> configuration)
 {
     _options = configuration.Value;
 }
コード例 #2
0
 public static IServiceCollection AddSendGridEmailProvider(this IServiceCollection services, [NotNull] SendGridOptions options)
 {
     return(services.AddSendGridEmailProvider(_ =>
     {
         _.DisplayEmail = options.DisplayEmail;
         _.DisplayName = options.DisplayName;
         _.Key = options.Key;
     }));
 }