C# Class Subtext.Framework.Stats

Class used for managing stats. Provides facilities for queing stats. This is used for trackbacks and pingbacks.
Currently, we only track referrers to specific entries.
Afficher le fichier Open project: ayende/Subtext

Méthodes publiques

Méthode Description
AddQuedStats ( EntryView entryView ) : void

Adds EntryView instance to the stats queue.

ClearQueue ( bool save ) : void

Clears the queue of statistics. If save is specified, then stats are saved to an EntryView

GetPagedReferrers ( int pageIndex, int pageSize ) : IPagedCollection

Returns a pageable collection of the referrers for the specified entry.

GetPagedReferrers ( int pageIndex, int pageSize, int entryId ) : IPagedCollection

Returns a pageable collection of the referrers for the specified entry.

TrackEntry ( IEnumerable evc ) : bool

Calls out to the data provider to track the specified IEnumerable{EntryView} instance.

TrackEntry ( EntryView ev ) : void

Calls out to the data provider to track the specified EntryView instance.

Private Methods

Méthode Description
ClearTrackEntryQueue ( IEnumerable evc ) : void
Stats ( ) : System.Collections.Generic

Static Constructor.

Method Details

AddQuedStats() public static méthode

Adds EntryView instance to the stats queue.
public static AddQuedStats ( EntryView entryView ) : void
entryView Subtext.Framework.Components.EntryView Ev.
Résultat void

ClearQueue() public static méthode

Clears the queue of statistics. If save is specified, then stats are saved to an EntryView
public static ClearQueue ( bool save ) : void
save bool Save.
Résultat void

GetPagedReferrers() public static méthode

Returns a pageable collection of the referrers for the specified entry.
public static GetPagedReferrers ( int pageIndex, int pageSize ) : IPagedCollection
pageIndex int Index of the page.
pageSize int Size of the page.
Résultat IPagedCollection

GetPagedReferrers() public static méthode

Returns a pageable collection of the referrers for the specified entry.
public static GetPagedReferrers ( int pageIndex, int pageSize, int entryId ) : IPagedCollection
pageIndex int Index of the page.
pageSize int Size of the page.
entryId int The entry id.
Résultat IPagedCollection

TrackEntry() public static méthode

Calls out to the data provider to track the specified IEnumerable{EntryView} instance.
public static TrackEntry ( IEnumerable evc ) : bool
evc IEnumerable Evc.
Résultat bool

TrackEntry() public static méthode

Calls out to the data provider to track the specified EntryView instance.
public static TrackEntry ( EntryView ev ) : void
ev Subtext.Framework.Components.EntryView Ev.
Résultat void