Show / Hide Table of Contents

Class PortalHub

Portal hub - a registry of portals, It establishes a context for portal inter-operation (i.e. so one portal may locate another by name) when some settings need to be cloned. This is an app-started singleton instance class

Inheritance
System.Object
DisposableObject
ApplicationComponent
PortalHub
Implements
IApplicationComponent
System.IDisposable
IApplicationStarter
IConfigurable
IApplicationFinishNotifiable
INamed
Inherited Members
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
ApplicationComponent.ComponentCommonName
ApplicationComponent.ComponentDirector
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
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)
System.Object.ToString()
Namespace: NFX.Wave
Assembly: NFX.Wave.dll
Syntax
public sealed class PortalHub : ApplicationComponent, IApplicationComponent, IDisposable, IApplicationStarter, IConfigurable, IApplicationFinishNotifiable, INamed

Fields

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
Type Description
ICMSBank

ContentFileSystem

Returns file system that serves static content for portals

Declaration
public IFileSystem ContentFileSystem { get; }
Property Value
Type Description
IFileSystem

ContentFileSystemConnectParams

Declaration
public FileSystemSessionConnectParams ContentFileSystemConnectParams { get; }
Property Value
Type Description
FileSystemSessionConnectParams

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
Type Description
Portal

Instance

Returns singleton instance

Declaration
public static PortalHub Instance { get; }
Property Value
Type Description
PortalHub

InstanceAvailable

True if instance is allocated

Declaration
public static bool InstanceAvailable { get; }
Property Value
Type Description
System.Boolean

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Portals

Registry of all portals in the hub

Declaration
public IRegistry<Portal> Portals { get; }
Property Value
Type Description
IRegistry<Portal>

Methods

Destructor()

Declaration
protected override void Destructor()
Overrides
ApplicationComponent.Destructor()

GenerateContentFileVersionSegment(String)

Generates file version path segment suitable for usage in file name. This method is slow as it does byte file sig calculation

Declaration
public string GenerateContentFileVersionSegment(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
System.String

Explicit Interface Implementations

IApplicationFinishNotifiable.ApplicationFinishAfterCleanup(IApplication)

Declaration
void IApplicationFinishNotifiable.ApplicationFinishAfterCleanup(IApplication application)
Parameters
Type Name Description
IApplication application

IApplicationFinishNotifiable.ApplicationFinishBeforeCleanup(IApplication)

Declaration
void IApplicationFinishNotifiable.ApplicationFinishBeforeCleanup(IApplication application)
Parameters
Type Name Description
IApplication application

IApplicationStarter.ApplicationStartAfterInit(IApplication)

Declaration
void IApplicationStarter.ApplicationStartAfterInit(IApplication application)
Parameters
Type Name Description
IApplication application

IApplicationStarter.ApplicationStartBeforeInit(IApplication)

Declaration
void IApplicationStarter.ApplicationStartBeforeInit(IApplication application)
Parameters
Type Name Description
IApplication application

IApplicationStarter.ApplicationStartBreakOnException

Declaration
bool IApplicationStarter.ApplicationStartBreakOnException { get; }
Returns
Type Description
System.Boolean

IConfigurable.Configure(IConfigSectionNode)

Declaration
void IConfigurable.Configure(IConfigSectionNode node)
Parameters
Type Name Description
IConfigSectionNode node

Implements

IApplicationComponent
System.IDisposable
IApplicationStarter
IConfigurable
IApplicationFinishNotifiable
INamed

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX