C# Class BlogEngine.Core.BlogSettings

Represents the configured settings for the blog engine.
Show file Open project: rasmuskl/ReSharperCourse Class Usage Examples

Public Methods

Method Description
GetInstanceSettings ( Blog blog ) : BlogSettings

Returns the settings for the requested blog instance.

GetThemeWithAdjustments ( string themeOverride ) : string

Takes into account factors such as if there is a theme override of if the theme is a Razor theme and returns the actual theme folder name for the current HTTP request.

IsThemeRazor ( string themeName ) : bool

Determines if themeName is a razor theme.

Save ( ) : void

Saves the settings to disk.

Version ( ) : string

Returns the BlogEngine.NET version information.

The current version is determined by extracting the build version of the BlogEngine.Core assembly.

Private Methods

Method Description
BlogSettings ( ) : System

Prevents a default instance of the BlogSettings class from being created. Initializes a new instance of the BlogSettings class.

GetSettingsTypePropertyDict ( ) : System.Reflection.PropertyInfo>.IDictionary
Load ( ) : void

Initializes the singleton instance of the BlogSettings class.

OnChanged ( ) : void

Occurs when the settings have been changed.

Method Details

GetInstanceSettings() public static method

Returns the settings for the requested blog instance.
public static GetInstanceSettings ( Blog blog ) : BlogSettings
blog Blog
return BlogSettings

GetThemeWithAdjustments() public method

Takes into account factors such as if there is a theme override of if the theme is a Razor theme and returns the actual theme folder name for the current HTTP request.
public GetThemeWithAdjustments ( string themeOverride ) : string
themeOverride string
return string

IsThemeRazor() public static method

Determines if themeName is a razor theme.
public static IsThemeRazor ( string themeName ) : bool
themeName string
return bool

Save() public method

Saves the settings to disk.
public Save ( ) : void
return void

Version() public method

Returns the BlogEngine.NET version information.
The current version is determined by extracting the build version of the BlogEngine.Core assembly.
public Version ( ) : string
return string