Class PortalHub
Portal hub module provides a root registry of portals per application -
it establishes a context for portal inter-operation (i.e. so one portal may locate another one by name)
when some settings need to be inherited/cloned.
Inheritance
System.Object
PortalHub
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Wave.dll
Syntax
public sealed class PortalHub : ModuleBase, IModuleImplementation, IModule, IApplicationComponent, INamed, IOrdered, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized, IApplicationInjection
Fields
APP_MODULE_NAME
An app-wide unique name for PortalHub module instance. There can be only one PortalHub
instance allocated in the app context
Declaration
public const string APP_MODULE_NAME = "@@@PortalHub"
Field Value
Type |
Description |
System.String |
|
CONFIG_CMS_BANK_SECTION
Declaration
public const string CONFIG_CMS_BANK_SECTION = "cms-bank"
Field Value
Type |
Description |
System.String |
|
CONFIG_CONTENT_FS_SECTION
Declaration
public const string CONFIG_CONTENT_FS_SECTION = "content-file-system"
Field Value
Type |
Description |
System.String |
|
CONFIG_FS_CONNECT_PARAMS_SECTION
Declaration
public const string CONFIG_FS_CONNECT_PARAMS_SECTION = "connect-params"
Field Value
Type |
Description |
System.String |
|
CONFIG_FS_ROOT_PATH_ATTR
Declaration
public const string CONFIG_FS_ROOT_PATH_ATTR = "root-path"
Field Value
Type |
Description |
System.String |
|
CONFIG_PORTAL_SECTION
Declaration
public const string CONFIG_PORTAL_SECTION = "portal"
Field Value
Type |
Description |
System.String |
|
Properties
CMSAvailable
Returns true if CMS is initializes with non-NOP CMS bank
Declaration
public bool CMSAvailable { get; }
Property Value
Type |
Description |
System.Boolean |
|
CMSBank
Returns the ICMSBank instance
Declaration
public ICMSBank CMSBank { get; }
Property Value
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
ContentFileSystem
Returns file system that serves static content for portals
Declaration
public IFileSystem ContentFileSystem { get; }
Property Value
ContentFileSystemConnectParams
Declaration
public FileSystemSessionConnectParams ContentFileSystemConnectParams { get; }
Property Value
ContentFileSystemRootPath
Returns root path for content file system
Declaration
public string ContentFileSystemRootPath { get; }
Property Value
Type |
Description |
System.String |
|
DefaultOnline
Returns first portal which is not Offline and marked as default
Declaration
public Portal DefaultOnline { get; }
Property Value
IsHardcodedModule
Declaration
public override bool IsHardcodedModule { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Name
Declaration
public override sealed string Name { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Portals
Registry of all portals in the hub
Declaration
public IRegistry<Portal> Portals { get; }
Property Value
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
GenerateContentFileVersionSegment(String)
Generates file version path segment suitable for usage in file name.
This method is slow as it does byte-by-byte file signature calculation
Declaration
public string GenerateContentFileVersionSegment(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Returns
Type |
Description |
System.String |
|
Implements
System.IDisposable
Extension Methods