Click or drag to resize
weroSoft AG, Software
ConsoleWorkerBase Klasse
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Provides base functionality used for creating an event worker.
Vererbungshierarchie

Namensraum:  WeroSoft.Installation
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 2.1 Development Main
Syntax
C#
public abstract class ConsoleWorkerBase : ISubscriber<OutputViewerTextEventArgs>
Anmerkungen
Use this type for implementing a common worker functionality as typically used in console applications. For implementing a worker type make a simple inheritance and overwrite minimal the method PerformWork. If needed you can also override the method InitializeWork and the method CleanupWork. These three methods are called by the method Execute from within the base class.

For interacting the worker

Der ConsoleWorkerBase Typ exponiert die folgenden Member.

Konstruktoren
  NameBeschreibung
Protected MethodeConsoleWorkerBase
Initializes a new instance of the type ConsoleWorkerBase.
Zurück nach oben
Eigenschaften
  NameBeschreibung
Protected EigenschaftEventAggregator
Gets the default event aggregation.
Public EigenschaftIsQuiet
Gets or sets a value indicating whether the writer shall write through on calling the method WriteContentToConsole.
Protected EigenschaftOutput
Holds the queue of messages for output.
Protected EigenschaftSyncRoot
Gets a synchronization guard.
Public EigenschaftWriteTimedFormat
Gets or sets a value indicating whether the log shall write the log time in front of the output or not.
Zurück nach oben
Methoden
  NameBeschreibung
Protected MethodeCleanupWork
Allows cleanup the worker.
Public MethodeClear
Clears the currently recorded output.
Public MethodeEquals
Determines whether the specified object is equal to the current object.
(Vererbt von Object.)
Public MethodeExecute
Executes the worker in the life cycle.
Protected MethodeFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Vererbt von Object.)
Public MethodeGetHashCode
Serves as the default hash function.
(Vererbt von Object.)
Public MethodeGetType
Gets the Type of the current instance.
(Vererbt von Object.)
Protected MethodeInitializeWork
Allows initiate the worker.
Protected MethodeMemberwiseClone
Creates a shallow copy of the current Object.
(Vererbt von Object.)
Public MethodeOnEventHandler
Event Handler on receiving an output text event.
Protected MethodePerformWork
Do the effective work of this application.
Public MethodeToString
Returns a string that represents the current object.
(Vererbt von Object.)
Public MethodeWriteContentToConsole
Write the current output content to the console.
Public MethodeWriteLine(String)
Writes a message to the output.
Public MethodeWriteLine(String, Object)
Writes a message to the output.
Public MethodeWriteTitle
Writes the title to the console.
Zurück nach oben
Erweiterungsmethoden
  NameBeschreibung
Public ErweiterungsmethodeClone(CloneWorkingMode, IEnumerableType)Überladen.
Clones an object by serialization.
(Definiert von RuntimeExtensions.)
Public ErweiterungsmethodeCloneT(CloneWorkingMode, IEnumerableType)Überladen.
Clones an object by serialization.
(Definiert von RuntimeExtensions.)
Public ErweiterungsmethodeConvert (Definiert von DataConverterExtensions.)
Public ErweiterungsmethodeDynamicCast
Dynamically casts a reference to another type.
(Definiert von TypeManagerHelper.)
Public ErweiterungsmethodeExtractSystemParametersFromTrigger
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Definiert von TriggerExtensions.)
Public ErweiterungsmethodeGetFieldValue(String)Überladen.
Gets the data object held by a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeGetFieldValueT(String)Überladen.
Gets the data object held by a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeGetPropertyValue(String)Überladen.
Gets the data object held by a defined property of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeGetPropertyValueT(String)Überladen.
Gets the data object held by a defined property of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeInject(Type, Object)Überladen.
Injects all fields or properties which are marked with the defined attribute type name.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInject(Type, Object, Boolean)Überladen.
Injects all fields or properties which are marked with the defined attribute type name.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInjectField
Injects a value to a property within a data object.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInjectProperty(String, Object)Überladen.
Injects a value to a property within a data object.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInjectProperty(String, Type, Object)Überladen.
Injects a value to a property within a data object.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInvoke(String, Object)Überladen.
Invokes a method on an object by reflection.
(Definiert von UnitTest.)
Public ErweiterungsmethodeInvokeTResult(String, Object)Überladen.
Invokes a method on an object by reflection.
(Definiert von UnitTest.)
Public ErweiterungsmethodeSetFieldValue
Sets the data object on a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeSetPropertyValue
Sets the data object on a defined property of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeSetReadOnlyFieldValue
Sets the data object on a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeTryInjectProperty
Tries to Inject a value to a property within a data object.
(Definiert von DataInjection.)
Zurück nach oben
Siehe auch