C# Class newtelligence.DasBlog.Web.Services.MailToWeblog

This is the handler class for the Mail-To-Weblog functionality.
Show file Open project: AArnott/dasblog Class Usage Examples

Public Methods

Method Description
MailToWeblog ( string configPath, string contentPath, string binariesPath, string logPath, Uri binariesBaseUri ) : System
Run ( ) : void

Mail-To-Weblog runs in background thread and this is the thread function.

StoreAttachment ( Attachment attachment, string binariesPath ) : string

Stores an attachment to disk.

Private Methods

Method Description
EqualBuffers ( byte buf1, byte buf2, int len ) : bool

Compares two binary buffers up to a certain length.

GetEncoderInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo

This function is used for thumbnailing and gets an image encoder for a given mime type, such as image/jpeg

Method Details

MailToWeblog() public method

public MailToWeblog ( string configPath, string contentPath, string binariesPath, string logPath, Uri binariesBaseUri ) : System
configPath string
contentPath string
binariesPath string
logPath string
binariesBaseUri System.Uri
return System

Run() public method

Mail-To-Weblog runs in background thread and this is the thread function.
public Run ( ) : void
return void

StoreAttachment() public method

Stores an attachment to disk.
public StoreAttachment ( Attachment attachment, string binariesPath ) : string
attachment Lesnikowski.Pawel.Mail.Pop3.Attachment
binariesPath string
return string