C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ClearTrackEntryQueue ( IEnumerable evc ) : void
Stats ( ) : System.Collections.Generic

Static Constructor.

Описание методов

AddQuedStats() публичный статический Метод

Adds EntryView instance to the stats queue.
public static AddQuedStats ( EntryView entryView ) : void
entryView Subtext.Framework.Components.EntryView Ev.
Результат void

ClearQueue() публичный статический Метод

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.
Результат void

GetPagedReferrers() публичный статический Метод

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.
Результат IPagedCollection

GetPagedReferrers() публичный статический Метод

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.
Результат IPagedCollection

TrackEntry() публичный статический Метод

Calls out to the data provider to track the specified IEnumerable{EntryView} instance.
public static TrackEntry ( IEnumerable evc ) : bool
evc IEnumerable Evc.
Результат bool

TrackEntry() публичный статический Метод

Calls out to the data provider to track the specified EntryView instance.
public static TrackEntry ( EntryView ev ) : void
ev Subtext.Framework.Components.EntryView Ev.
Результат void