C# Class newtelligence.DasBlog.Runtime.BlogDataServiceXml

Inheritance: IBlogDataService
Datei anzeigen Open project: AArnott/dasblog Class Usage Examples

Public Methods

Method Description
GetEntries ( Predicate dayEntryCriteria, Predicate entryCriteria, int maxDays, int maxEntries ) : EntryCollection

Returns an EntryCollection whose entries all fit the criteria specified by include.

Protected Methods

Method Description
CrosspostWorker ( object argument ) : void
GetAbsolutePath ( string file ) : string
GetDateForEntry ( string entryId ) : System.DateTime
GetTrackbackLink ( string pageBody, string externalUri ) : string
HandleCrosspost ( CrosspostInfo ci, newtelligence.DasBlog.Runtime.Entry entry ) : void
InternalGetDayEntries ( System.DateTime startDate, TimeZone tz, int maxDays ) : DayEntryCollection

Gets a collection of newtelligence.DasBlog.Runtime.DayEntry structures for dates starting at the startDate backwards for at most maxDays.

InternalGetDayEntries ( Predicate dayEntryCriteria ) : DayEntryCollection

Load the DayEntries that match the criteria of the includeDayEntry delegate

InternalGetDayEntries ( Predicate dayEntryCriteria, int maxDays ) : DayEntryCollection

Returns loaded DayEntries that correspond to the criteria

InternalGetDayExtra ( System.DateTime date ) : DayExtra

Gets the DayExtra structure for a given date.

InternalGetEntry ( string entryId ) : newtelligence.DasBlog.Runtime.Entry
PingWeblogsWorker ( object argument ) : void
Pingback ( string sourceUri, string pingbackService, string pingbackTarget, string entryTitle ) : void
PingbackWorker ( object argument ) : void
TrackbackWorker ( object argument ) : void

Private Methods

Method Description
BlogDataServiceXml ( string contentLocation, ILoggingDataService loggingService ) : System

The BlogDataServiceXml constructor is entrypoint for the dasBlog Runtime.

IBlogDataService ( ) : CategoryCacheEntryCollection
IBlogDataService ( string entryId, string commentId ) : Comment
IBlogDataService ( ) : CommentCollection

Gets all comments for this blog.

This method will be extremely slow on a blog with a lot of content.

IBlogDataService ( string entryId ) : CommentCollection
IBlogDataService ( string entryId, bool allComments ) : CommentCollection

IBlogDataService ( ) : System.DateTime

This DateTime of the most recent comment entry

IBlogDataService ( TimeZone tz ) : System.DateTime[]
IBlogDataService ( System.DateTime date ) : DayEntry
IBlogDataService ( System.DateTime date ) : DayExtra
IBlogDataService ( string entryId ) : newtelligence.DasBlog.Runtime.Entry

Returns the Entry for a given entryId.

IBlogDataService ( System.DateTime month, TimeZone timeZone, string acceptLanguages ) : EntryCollection
IBlogDataService ( System.DateTime startDateUtc, TimeZone tz, string acceptLanguages, int maxDays, int maxEntries, string categoryName ) : EntryCollection

Gets a collection of at most maxEntries newtelligence.DasBlog.Runtime.Entry structures for dates starting at the startDateUtc backwards for at most maxDays. The collection can optionally be filtered by a categoryName.

The start date is expressed as a date relative to the UTC timezone and is normalized to UTC 0000 hrs. The TimeZone passed to this method serves to offset UTC into display time.

IBlogDataService ( bool fullContent ) : EntryCollection
IBlogDataService ( string user ) : EntryCollection
IBlogDataService ( string categoryName, string acceptLanguages ) : EntryCollection
IBlogDataService ( newtelligence.DasBlog.Runtime.Entry entry ) : EntrySaveState
IBlogDataService ( string entryId ) : TrackingCollection
IBlogDataService ( Comment comment ) : void
IBlogDataService ( Tracking tracking ) : void
IBlogDataService ( object actions ) : void
IBlogDataService ( string entryId, CrosspostSiteCollection crosspostSites ) : void
IBlogDataService ( string entryId, string commentId ) : void
IBlogDataService ( string entryId, string trackingPermalink, TrackingType trackingType ) : void
InternalAddTracking ( Tracking tracking ) : void
InternalGetCommentsFor ( string entryId, bool allComments ) : CommentCollection
InternalGetDayEntry ( System.DateTime date ) : DayEntry
InternalSendMail ( newtelligence.DasBlog.Runtime.SendMailInfo info ) : void
SendMailHandler ( ) : void
TrackingHandler ( ) : void

Method Details

CrosspostWorker() protected method

protected CrosspostWorker ( object argument ) : void
argument object
return void

GetAbsolutePath() protected method

protected GetAbsolutePath ( string file ) : string
file string
return string

GetDateForEntry() protected method

protected GetDateForEntry ( string entryId ) : System.DateTime
entryId string
return System.DateTime

GetEntries() public method

Returns an EntryCollection whose entries all fit the criteria specified by include.
public GetEntries ( Predicate dayEntryCriteria, Predicate entryCriteria, int maxDays, int maxEntries ) : EntryCollection
dayEntryCriteria Predicate A delegate that specifies which days should be included.
entryCriteria Predicate A delegate that specifies which entries should be included.
maxDays int The maximum number of days to include.
maxEntries int The maximum number of entries to return.
return EntryCollection

GetTrackbackLink() protected method

protected GetTrackbackLink ( string pageBody, string externalUri ) : string
pageBody string
externalUri string
return string

HandleCrosspost() protected method

protected HandleCrosspost ( CrosspostInfo ci, newtelligence.DasBlog.Runtime.Entry entry ) : void
ci CrosspostInfo
entry newtelligence.DasBlog.Runtime.Entry
return void

InternalGetDayEntries() protected method

Gets a collection of newtelligence.DasBlog.Runtime.DayEntry structures for dates starting at the startDate backwards for at most maxDays.
protected InternalGetDayEntries ( System.DateTime startDate, TimeZone tz, int maxDays ) : DayEntryCollection
startDate System.DateTime Date at which to start collecting DayEntry structures
tz System.TimeZone
maxDays int Maximum number of days to return. This number relates to /// days actually found and not to calendar days.
return DayEntryCollection

InternalGetDayEntries() protected method

Load the DayEntries that match the criteria of the includeDayEntry delegate
protected InternalGetDayEntries ( Predicate dayEntryCriteria ) : DayEntryCollection
dayEntryCriteria Predicate A delegate that returns true for each DayEntry that should be included in the DayEntryCollection returned
return DayEntryCollection

InternalGetDayEntries() protected method

Returns loaded DayEntries that correspond to the criteria
protected InternalGetDayEntries ( Predicate dayEntryCriteria, int maxDays ) : DayEntryCollection
dayEntryCriteria Predicate
maxDays int
return DayEntryCollection

InternalGetDayExtra() protected method

Gets the DayExtra structure for a given date.
protected InternalGetDayExtra ( System.DateTime date ) : DayExtra
date System.DateTime Date for which the structure shall be returned.
return DayExtra

InternalGetEntry() protected method

protected InternalGetEntry ( string entryId ) : newtelligence.DasBlog.Runtime.Entry
entryId string
return newtelligence.DasBlog.Runtime.Entry

PingWeblogsWorker() protected method

protected PingWeblogsWorker ( object argument ) : void
argument object
return void

Pingback() protected method

protected Pingback ( string sourceUri, string pingbackService, string pingbackTarget, string entryTitle ) : void
sourceUri string
pingbackService string
pingbackTarget string
entryTitle string
return void

PingbackWorker() protected method

protected PingbackWorker ( object argument ) : void
argument object
return void

TrackbackWorker() protected method

protected TrackbackWorker ( object argument ) : void
argument object
return void