C# 클래스 Telerik.Sitefinity.Newsletters.SendGrid.Notifications.SendGridSender

SendGrid email sender.
상속: Sender, IBatchSender
파일 보기 프로젝트 열기: Sitefinity/NewslettersSendGrid 1 사용 예제들

공개 메소드들

메소드 설명
ConstructMessage ( IMessageJobRequest messageJob, IEnumerable subscribers ) : SendGrid.SendGridMessage

Constructs a SendGrid message based on the specified messageJob and subscribers.

SendAsync ( SendGrid message ) : Task

Sends the specified SendGrid message.

SendGridSender ( ) : System

Initializes a new instance of the SendGridSender class.

This constructor method is used by the unit tests project.

SendGridSender ( SenderProfileElement senderProfile ) : System

Initializes a new instance of the SendGridSender class.

This is the constructor that is used by the Sitefinity notifications send scheduled task to construct an initialized instance of this sender.

SendMessage ( IMessageInfo messageInfo, ISubscriberRequest subscriber ) : SendResult

Sends an instant message to the specified subscriber.

SendMessage ( IMessageJobRequest messageJob, IEnumerable subscribers ) : SendResult

Sends the message to the given subscribers using the SendGrid service.

비공개 메소드들

메소드 설명
AddCustomHeaders ( SendGrid message, string>.IDictionary customMessageHeaders ) : void
AddGlobalProperties ( SendGrid message, IMessageJobRequest messageJob ) : void
AddSubscribersInfo ( SendGrid message, IMessageJobRequest messageJob, IEnumerable subscribers ) : void
CalculateSubstitutions ( Dictionary substitutions, string>.Dictionary subscriberProperties ) : void
Dispose ( ) : void
GetReplacementTags ( IMessageJobRequest messageJob ) : IEnumerable
InitSettings ( SenderProfileElement senderProfile ) : void
InitializeSubstitutions ( IEnumerable replacementTags, string>.IDictionary customHeaders ) : List>.Dictionary

메소드 상세

ConstructMessage() 공개 메소드

Constructs a SendGrid message based on the specified messageJob and subscribers.
public ConstructMessage ( IMessageJobRequest messageJob, IEnumerable subscribers ) : SendGrid.SendGridMessage
messageJob IMessageJobRequest The Sitefinity message job from which to construct a SendGrid message.
subscribers IEnumerable The subscribers for the message.
리턴 SendGrid.SendGridMessage

SendAsync() 공개 메소드

Sends the specified SendGrid message.
public SendAsync ( SendGrid message ) : Task
message SendGrid The SendGrid message to send.
리턴 Task

SendGridSender() 공개 메소드

Initializes a new instance of the SendGridSender class.
This constructor method is used by the unit tests project.
public SendGridSender ( ) : System
리턴 System

SendGridSender() 공개 메소드

Initializes a new instance of the SendGridSender class.
This is the constructor that is used by the Sitefinity notifications send scheduled task to construct an initialized instance of this sender.
public SendGridSender ( SenderProfileElement senderProfile ) : System
senderProfile SenderProfileElement The sender profile.
리턴 System

SendMessage() 공개 메소드

Sends an instant message to the specified subscriber.
public SendMessage ( IMessageInfo messageInfo, ISubscriberRequest subscriber ) : SendResult
messageInfo IMessageInfo The message info.
subscriber ISubscriberRequest The subscriber.
리턴 SendResult

SendMessage() 공개 메소드

Sends the message to the given subscribers using the SendGrid service.
public SendMessage ( IMessageJobRequest messageJob, IEnumerable subscribers ) : SendResult
messageJob IMessageJobRequest The message info.
subscribers IEnumerable The subscribers.
리턴 SendResult