C# Class MiniWeb.Core.MiniWebSite

Inheritance: IMiniWebSite
Afficher le fichier Open project: IRooc/miniweb-coreclr

Méthodes publiques

Méthode Description
Authenticate ( string user, string password ) : bool
DeleteAsset ( IAsset asset ) : void
DeleteSitePage ( ISitePage page ) : void
DummyContent ( string template ) : IContentItem
GetDefaultContentForTemplate ( string template ) : List
GetPageByUrl ( string url, bool editing = false ) : ISitePage
GetPageUrl ( ISitePage page ) : string
IsAuthenticated ( ClaimsPrincipal user ) : bool
MiniWebSite ( IHostingEnvironment env, ILoggerFactory loggerfactory, IMiniWebContentStorage storage, IMiniWebAssetStorage assetStorage, IOptions config ) : System
ReloadAssets ( ) : void
ReloadPages ( ) : void
SaveSitePage ( ISitePage page, bool storeImages = false ) : void

Private Methods

Méthode Description
SaveEmbeddedImages ( string html ) : string
SetupLogging ( ILoggerFactory loggerfactory ) : ILogger

Method Details

Authenticate() public méthode

public Authenticate ( string user, string password ) : bool
user string
password string
Résultat bool

DeleteAsset() public méthode

public DeleteAsset ( IAsset asset ) : void
asset IAsset
Résultat void

DeleteSitePage() public méthode

public DeleteSitePage ( ISitePage page ) : void
page ISitePage
Résultat void

DummyContent() public méthode

public DummyContent ( string template ) : IContentItem
template string
Résultat IContentItem

GetDefaultContentForTemplate() public méthode

public GetDefaultContentForTemplate ( string template ) : List
template string
Résultat List

GetPageByUrl() public méthode

public GetPageByUrl ( string url, bool editing = false ) : ISitePage
url string
editing bool
Résultat ISitePage

GetPageUrl() public méthode

public GetPageUrl ( ISitePage page ) : string
page ISitePage
Résultat string

IsAuthenticated() public méthode

public IsAuthenticated ( ClaimsPrincipal user ) : bool
user System.Security.Claims.ClaimsPrincipal
Résultat bool

MiniWebSite() public méthode

public MiniWebSite ( IHostingEnvironment env, ILoggerFactory loggerfactory, IMiniWebContentStorage storage, IMiniWebAssetStorage assetStorage, IOptions config ) : System
env IHostingEnvironment
loggerfactory ILoggerFactory
storage IMiniWebContentStorage
assetStorage IMiniWebAssetStorage
config IOptions
Résultat System

ReloadAssets() public méthode

public ReloadAssets ( ) : void
Résultat void

ReloadPages() public méthode

public ReloadPages ( ) : void
Résultat void

SaveSitePage() public méthode

public SaveSitePage ( ISitePage page, bool storeImages = false ) : void
page ISitePage
storeImages bool
Résultat void