C# Класс SendGrid.Transport.Web

Наследование: ITransport
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

DeliverAsync() публичный Метод

Asynchronously delivers a message over SendGrid's Web interface.
public DeliverAsync ( IMail message ) : System.Threading.Tasks.Task
message IMail
Результат System.Threading.Tasks.Task

GetInstance() публичный статический Метод

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?
Результат Web