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

This is the handler class for the Daily Report email functionality.
Show file Open project: AArnott/dasblog Class Usage Examples

Public Methods

Method Description
ReportMailer ( string configPath, string contentPath, string logPath ) : System
Run ( ) : void

Report-Mailer runs in background thread and this is the thread function.

SendEmailReport ( System.DateTime reportDate, SiteConfig siteConfig, IBlogDataService dataService, ILoggingDataService loggingService ) : void

Protected Methods

Method Description
GenerateSortedItemList ( IDictionary dict ) : ArrayList

Private Methods

Method Description
GenerateReportEmailBody ( System.DateTime reportDate ) : string
GetStyleSheet ( ) : string
GetTotal ( Hashtable hash ) : string
MakeTableHeader ( string col1, string col2 ) : string
MakeTableRow ( string title, string count ) : string
MakeTableRowsFromArray ( Hashtable hash ) : string

Method Details

GenerateSortedItemList() protected method

protected GenerateSortedItemList ( IDictionary dict ) : ArrayList
dict IDictionary
return System.Collections.ArrayList

ReportMailer() public method

public ReportMailer ( string configPath, string contentPath, string logPath ) : System
configPath string
contentPath string
logPath string
return System

Run() public method

Report-Mailer runs in background thread and this is the thread function.
public Run ( ) : void
return void

SendEmailReport() public method

public SendEmailReport ( System.DateTime reportDate, SiteConfig siteConfig, IBlogDataService dataService, ILoggingDataService loggingService ) : void
reportDate System.DateTime
siteConfig SiteConfig
dataService IBlogDataService
loggingService ILoggingDataService
return void