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.
Show file Open project: ayende/Subtext

Public Methods

Method 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

Method Description
ClearTrackEntryQueue ( IEnumerable evc ) : void
Stats ( ) : System.Collections.Generic

Static Constructor.

Method Details

AddQuedStats() public static method

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

ClearQueue() public static method

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.
return void

GetPagedReferrers() public static method

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.
return IPagedCollection

GetPagedReferrers() public static method

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.
return IPagedCollection

TrackEntry() public static method

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

TrackEntry() public static method

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