C# Class MiniWeb.Core.MiniWebSite

Inheritance: IMiniWebSite
Mostra file Open project: IRooc/miniweb-coreclr

Public Methods

Method 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

Method Description
SaveEmbeddedImages ( string html ) : string
SetupLogging ( ILoggerFactory loggerfactory ) : ILogger

Method Details

Authenticate() public method

public Authenticate ( string user, string password ) : bool
user string
password string
return bool

DeleteAsset() public method

public DeleteAsset ( IAsset asset ) : void
asset IAsset
return void

DeleteSitePage() public method

public DeleteSitePage ( ISitePage page ) : void
page ISitePage
return void

DummyContent() public method

public DummyContent ( string template ) : IContentItem
template string
return IContentItem

GetDefaultContentForTemplate() public method

public GetDefaultContentForTemplate ( string template ) : List
template string
return List

GetPageByUrl() public method

public GetPageByUrl ( string url, bool editing = false ) : ISitePage
url string
editing bool
return ISitePage

GetPageUrl() public method

public GetPageUrl ( ISitePage page ) : string
page ISitePage
return string

IsAuthenticated() public method

public IsAuthenticated ( ClaimsPrincipal user ) : bool
user System.Security.Claims.ClaimsPrincipal
return bool

MiniWebSite() public method

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

ReloadAssets() public method

public ReloadAssets ( ) : void
return void

ReloadPages() public method

public ReloadPages ( ) : void
return void

SaveSitePage() public method

public SaveSitePage ( ISitePage page, bool storeImages = false ) : void
page ISitePage
storeImages bool
return void