C# Class newtelligence.DasBlog.Runtime.BlogDataServiceXml

Inheritance: IBlogDataService
Afficher le fichier Open project: AArnott/dasblog Class Usage Examples

Méthodes publiques

Méthode Description
GetEntries ( Predicate dayEntryCriteria, Predicate entryCriteria, int maxDays, int maxEntries ) : EntryCollection

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected CrosspostWorker ( object argument ) : void
argument object
Résultat void

GetAbsolutePath() protected méthode

protected GetAbsolutePath ( string file ) : string
file string
Résultat string

GetDateForEntry() protected méthode

protected GetDateForEntry ( string entryId ) : System.DateTime
entryId string
Résultat System.DateTime

GetEntries() public méthode

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.
Résultat EntryCollection

GetTrackbackLink() protected méthode

protected GetTrackbackLink ( string pageBody, string externalUri ) : string
pageBody string
externalUri string
Résultat string

HandleCrosspost() protected méthode

protected HandleCrosspost ( CrosspostInfo ci, newtelligence.DasBlog.Runtime.Entry entry ) : void
ci CrosspostInfo
entry newtelligence.DasBlog.Runtime.Entry
Résultat void

InternalGetDayEntries() protected méthode

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.
Résultat DayEntryCollection

InternalGetDayEntries() protected méthode

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
Résultat DayEntryCollection

InternalGetDayEntries() protected méthode

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

InternalGetDayExtra() protected méthode

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.
Résultat DayExtra

InternalGetEntry() protected méthode

protected InternalGetEntry ( string entryId ) : newtelligence.DasBlog.Runtime.Entry
entryId string
Résultat newtelligence.DasBlog.Runtime.Entry

PingWeblogsWorker() protected méthode

protected PingWeblogsWorker ( object argument ) : void
argument object
Résultat void

Pingback() protected méthode

protected Pingback ( string sourceUri, string pingbackService, string pingbackTarget, string entryTitle ) : void
sourceUri string
pingbackService string
pingbackTarget string
entryTitle string
Résultat void

PingbackWorker() protected méthode

protected PingbackWorker ( object argument ) : void
argument object
Résultat void

TrackbackWorker() protected méthode

protected TrackbackWorker ( object argument ) : void
argument object
Résultat void