Interface IApplicationComponent
Provides marker contract requirement for an ApplicationComponent. This interface must be implemented only by the ApplicationComponent class. Components are the base building block of application tree - they get "mounted on app chassis"
Namespace: Azos.Apps
Assembly: Azos.dll
Syntax
public interface IApplicationComponent
Properties
App
References an application chassis that this component services
Declaration
IApplication App { get; }
Property Value
Type | Description |
---|---|
IApplication |
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
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
IApplicationComponent ComponentDirector { get; }
Property Value
Type | Description |
---|---|
IApplicationComponent |
ComponentEffectiveLogLevel
Determines the effective log level for this component, taking it from director if it is not defined on this level
Declaration
MessageType ComponentEffectiveLogLevel { get; }
Property Value
Type | Description |
---|---|
MessageType |
ComponentLogFromPrefix
Returns a prefix used in "From" log message field
Declaration
string ComponentLogFromPrefix { get; }
Property Value
Type | Description |
---|---|
System.String |
ComponentLogLevel
Sets the log level for this component, if not defined then the component logger uses the director/log level via the ComponentEffectiveLogLevel property
Declaration
MessageType? ComponentLogLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<MessageType> |
ComponentLogTopic
Returns value for "Topic" log message field
Declaration
string ComponentLogTopic { get; }
Property Value
Type | Description |
---|---|
System.String |
ComponentSID
Returns process/instance unique app component system id
Declaration
ulong ComponentSID { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
ComponentStartTime
Returns local computer time of component start (not from application container time)
Declaration
DateTime ComponentStartTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |