/// <summary> /// Initializes a new instance of the <see cref="BaseEmailService"/> class. /// </summary> /// <param name="parser">The notification body parser if null service will use default parser to parse body or you can pass your custom parser.</param> public BaseEmailService(INotificationBodyParser parser = null) : base(parser) { if (this.NotificationBodyParser == null) { this.NotificationBodyParser = new EmailBodyResolver(); } }
/// <summary> /// /// </summary> /// <param name="config"></param> /// <param name="parser"></param> public SMTPService(SMTPConfig config, INotificationBodyParser parser = null) : base(parser) { this._config = config; this._client = this.GetSMTPClient(this._config); }
public AmazonEmailService(AmazonEmailConfig config, INotificationBodyParser parser = null) : base(parser) { this._client = this.GetClient(config); }
public SendGridService(SendGridConfig config, INotificationBodyParser resolver = null) : base(resolver) { this._sendGridClient = this.GetClient(config); }
/// <summary> /// Initializes a new instance of the <see cref="BaseNotificationService{TRequest, TResponse}"/> class. /// </summary> /// <param name="notificationBodyResolver">The notification body resolver.</param> public BaseNotificationService(INotificationBodyParser notificationBodyResolver) { this.NotificationBodyParser = notificationBodyResolver; }