Show / Hide Table of Contents

Class ApplicationComponent

An abstraction of a disposable application component - major implementation/functionality part of an app. Components logically subdivide application container so their instances may be discovered by other parties, for example: one may iterate over all components in an application that support instrumentation and logging. Services are sub-types of components. Use "ApplicationComponent.AllComponents" to access all components in the container

Inheritance
System.Object
DisposableObject
ApplicationComponent
ModuleBase
NOPObjectStore
CacheStore
SubscriptionAppComponent
Connection
MongoClient
ServerNode
MongoDBDataStoreBase
MySQLDataStoreBase
NOPDataStore
NOPGlue
NOPInstrumentation
FileSystem
NOPNetGate
Destination
NOPLog
PALImplementation
NOPSecurityManager
Service
NOPThrottling
Throttle
DefaultTimeSource
Event
NOPEventTimer
Portal
PortalHub
WorkFilter
WorkHandler
ConfigBasedCurrencyMarket
Implements
IApplicationComponent
System.IDisposable
Inherited Members
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.ApplicationModel
Assembly: NFX.dll
Syntax
public abstract class ApplicationComponent : DisposableObject, IApplicationComponent, IDisposable

Constructors

ApplicationComponent()

Declaration
protected ApplicationComponent()

ApplicationComponent(Object)

Declaration
protected ApplicationComponent(object director)
Parameters
Type Name Description
System.Object director

Properties

AllComponents

Returns a thread-safe enumerable( a snapshot) of all known component instances

Declaration
public static IEnumerable<ApplicationComponent> AllComponents { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ApplicationComponent>

ComponentCommonName

Returns the common name used to identify the component, for example "Glue" for various IGlue implementations. This name is searched-by some management tools that allow to find component by this name that does not change between application restarts like ComponentSID does. Subordinate (non-root) components return null

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

ComponentDirector

Returns a reference to an object that this app component services/operates under, or null

Declaration
public object ComponentDirector { get; }
Property Value
Type Description
System.Object

ComponentSID

Returns process/instance unique app component system id

Declaration
public ulong ComponentSID { get; }
Property Value
Type Description
System.UInt64

ComponentStartTime

Returns local computer time of component start (not from application container time)

Declaration
public DateTime ComponentStartTime { get; }
Property Value
Type Description
System.DateTime

Methods

Destructor()

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

GetAppComponentByCommonName(String)

Looks-up an existing application component instance by its ComponentCommonName or null. The search is case-insensitive

Declaration
public static ApplicationComponent GetAppComponentByCommonName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
ApplicationComponent

GetAppComponentBySID(UInt64)

Looks-up an existing application component instance by its ComponentSID or null

Declaration
public static ApplicationComponent GetAppComponentBySID(ulong sid)
Parameters
Type Name Description
System.UInt64 sid
Returns
Type Description
ApplicationComponent

Implements

IApplicationComponent
System.IDisposable

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