C# Class SendGrid.Transport.Web

Inheritance: ITransport
ファイルを表示 Open project: advancedrei/sendgridplus-csharp

Public Methods

Method Description
DeliverAsync ( IMail message ) : System.Threading.Tasks.Task

Asynchronously delivers a message over SendGrid's Web interface.

GetInstance ( NetworkCredential credentials, bool https = true ) : Web

Factory method for Web transport of sendgrid messages

Private Methods

Method Description
AddAttachments ( IMail message, System.Net.Http.MultipartFormDataContent content ) : void

AddFormParams ( IMail message, System.Net.Http.MultipartFormDataContent content ) : void

AttachFiles ( IMail message, System.Net.Http.MultipartFormDataContent content ) : void
AttachFormParams ( IMail message, System.Net.Http.MultipartFormDataContent content ) : void
CheckForErrors ( HttpResponseMessage response ) : void
CheckForErrorsAsync ( HttpResponseMessage response ) : System.Threading.Tasks.Task

Deliver ( IMail message ) : void
FetchFileBodies ( IMail message ) : IFile>>.List
FetchFormParams ( IMail message ) : string>>.List
FetchStreamingFileBodies ( IMail message ) : MemoryStream>>.List
FindErrorsInResponse ( Stream content ) : void
Web ( NetworkCredential credentials, bool https = true ) : System

Creates a new Web interface for sending mail. Preference is using the Factory method.

Method Details

DeliverAsync() public method

Asynchronously delivers a message over SendGrid's Web interface.
public DeliverAsync ( IMail message ) : System.Threading.Tasks.Task
message IMail
return System.Threading.Tasks.Task

GetInstance() public static method

Factory method for Web transport of sendgrid messages
public static GetInstance ( NetworkCredential credentials, bool https = true ) : Web
credentials System.Net.NetworkCredential SendGrid credentials for sending mail messages
https bool Use https?
return Web