C# Class Agribusiness.Web.Services.SiteService

Datei anzeigen Open project: ucdavis/Agribusiness Class Usage Examples

Public Properties

Property Type Description
RepositoryFactory IRepositoryFactory
SeminarKey string

Public Methods

Method Description
GetLatestSeminar ( string siteId, bool forceReload = false ) : Seminar

Gets a site's latest seminar from cache if available, otherwise go to db

LoadSite ( string siteId, bool forceReload = false ) : Site

Loads Site from Cache if available, other goes to DB

LoadSiteDomains ( ) : string>>.List

Loads list of sites to determine domain

ReCacheSite ( Site site ) : void

Updates cache for a site

RecacheSiteDomains ( ) : void

Recache the list of sites to determine domain

Method Details

GetLatestSeminar() public static method

Gets a site's latest seminar from cache if available, otherwise go to db
public static GetLatestSeminar ( string siteId, bool forceReload = false ) : Seminar
siteId string
forceReload bool Force reload of the site
return Seminar

LoadSite() public static method

Loads Site from Cache if available, other goes to DB
public static LoadSite ( string siteId, bool forceReload = false ) : Site
siteId string
forceReload bool Force reload of the site
return Site

LoadSiteDomains() public static method

Loads list of sites to determine domain
public static LoadSiteDomains ( ) : string>>.List
return string>>.List

ReCacheSite() public static method

Updates cache for a site
public static ReCacheSite ( Site site ) : void
site Site
return void

RecacheSiteDomains() public static method

Recache the list of sites to determine domain
public static RecacheSiteDomains ( ) : void
return void

Property Details

RepositoryFactory public_oe static_oe property

public static IRepositoryFactory RepositoryFactory
return IRepositoryFactory

SeminarKey public_oe static_oe property

public static string SeminarKey
return string