Exemplo n.º 1
0
        protected virtual SendGridClient GetClient(SendGridConfig config)
        {
            var client = new SendGridClient(config.ApiKey, config.Host, config.RequestHeaders, config.Version, config.UrlPath);

            return(client);
        }
Exemplo n.º 2
0
 public SendGridService(SendGridConfig config, INotificationBodyParser resolver = null) : base(resolver)
 {
     this._sendGridClient = this.GetClient(config);
 }