ServiceBaseApplication MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The ServiceBaseApplication type exposes the following members.
Constructors

  NameDescription
Public methodServiceBaseApplication( String , ConfigSectionNode)
Takes optional application args[] and root configuration. The args are parsed into CommandArgsConfiguration.
Public methodServiceBaseApplication(String, Configuration, ConfigSectionNode)
Takes optional command-line configuration args and root configuration. If configuration is null then application is configured from a file co-located with entry-point assembly and called the same name as assembly with '.config' extension, unless args are specified and "/config file" switch is used in which case 'file' has to be locatable and readable.
Back to Top
Methods

  NameDescription
Protected methodBeforeDataStoreStart
Override to prep data store implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeEventTimerStart
Override to prep event timer implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeGlueStart
Override to prep glue implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeInstrumentationStart
Override to prep instr implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeLogStart
Override to prep log implementation i.e. inject log destinations programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeObjectStoreStart
Override to prep object store implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeSecurityManagerStart
Override to prep security manager implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeThrottlingStart
Override to prep throttling implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodBeforeTimeSourceStart
Override to prep time source implementation i.e. inject something programmaticaly
(Inherited from CommonApplicationLogic.)
Protected methodCleanupApplication (Inherited from CommonApplicationLogic.)
Public methodStatic memberDestroy
Destroys application effectively finalizing all services
Protected methodDestructor (Overrides CommonApplicationLogic Destructor .)
Public methodDispose
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.)
Protected methodDoCleanupApplication (Inherited from CommonApplicationLogic.)
Protected methodDoInitApplication (Inherited from CommonApplicationLogic.)
Public methodEnsureObjectNotDisposed
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.)
Public methodOnlineEquals
Determines whether the specified object is equal to the current object.
(Inherited from OnlineObject.)
Protected methodFinalize (Inherited from DisposableObject.)
Protected methodGetConfiguration
Protected methodGetDefaultConfigFileName
Tries to find a configuration file name looping through various supported estensions
(Inherited from CommonApplicationLogic.)
Public methodOnlineGetHashCode
Serves as the default hash function.
(Inherited from OnlineObject.)
Protected methodGetStarters (Inherited from CommonApplicationLogic.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodInitApplication (Inherited from CommonApplicationLogic.)
Public methodLocalizedTimeToUniversalTime
Converts localized time to UTC time as of TimeLocation property
(Inherited from CommonApplicationLogic.)
Public methodMakeNewSessionInstance
Makes BaseSession instance
(Inherited from CommonApplicationLogic.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodNotifyAllConfigSettingsAboutChange 
Forces notification of all registered IConfigSettings-implementers about configuration change
(Inherited from CommonApplicationLogic.)
Protected methodNotifyAllConfigSettingsAboutChange(IConfigSectionNode)
Forces notification of all registered IConfigSettings-implementers about configuration change
(Inherited from CommonApplicationLogic.)
Public methodPreloadAssemblies
RESERVED for future use. Loads assemblies specified in 'preload-assemblies' section from disk optionally checking the 'enabled' flag. This method is called on application startup by the framework
(Inherited from CommonApplicationLogic.)
Public methodRegisterAppFinishNotifiable
Registers an instance of IApplicationFinishNotifiable with application container to receive a call when underlying application instance will finish its lifecycle
(Inherited from CommonApplicationLogic.)
Public methodRegisterConfigSettings
Registers an instance of IConfigSettings with application container to receive a call when underlying app configuration changes
(Inherited from CommonApplicationLogic.)
Public methodStop
Initiates the stop of the application by setting its Stopping to true and Active to false so dependent services may start to terminate
(Inherited from CommonApplicationLogic.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodUniversalTimeToLocalizedTime
Converts universal time to local time as of TimeLocation property
(Inherited from CommonApplicationLogic.)
Public methodUnregisterAppFinishNotifiable
Removes the registration of IConfigSettings from application container
(Inherited from CommonApplicationLogic.)
Public methodUnregisterConfigSettings
Removes the registration of IConfigSettings from application container
(Inherited from CommonApplicationLogic.)
Protected methodWriteLog (Inherited from CommonApplicationLogic.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsBool (Defined by ObjectValueConversion.)
Public Extension MethodAsByte (Defined by ObjectValueConversion.)
Public Extension MethodAsChar (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime(DateTime, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID(GDID, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol(GDIDSymbol, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsInt (Defined by ObjectValueConversion.)
Public Extension MethodAsJSONConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLaconicConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNonNullOrEmptyString (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableBool (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableChar (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDateTime (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDIDSymbol (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableShort (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableTimeSpan (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableULong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsShort (Defined by ObjectValueConversion.)
Public Extension MethodAsString (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan(TimeSpan, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsULong (Defined by ObjectValueConversion.)
Public Extension MethodAsUri (Defined by ObjectValueConversion.)
Public Extension MethodAsUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsXMLConfig (Defined by ObjectValueConversion.)
Public Extension MethodToErlObject Overloaded.
Try to convert .NET native object type to corresponding Erlang term. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToErlObject(ErlTypeOrder, Boolean)Overloaded.
Try to convert .NET native object type to corresponding Erlang term of given type. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToJSON(JSONWritingOptions)Overloaded.
Serializes object into JSON string
(Defined by JSONExtensions.)
Public Extension MethodToJSON(TextWriter, JSONWritingOptions)Overloaded.
Serializes object into JSON format using provided TextWriter
(Defined by JSONExtensions.)
Public Extension MethodToJSON(Stream, JSONWritingOptions, Encoding)Overloaded.
Serializes object into JSON format using provided stream and optional encoding
(Defined by JSONExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldm_CommandArgs
Protected fieldm_ConfigRoot (Inherited from CommonApplicationLogic.)
Protected fieldm_ConfigSettings (Inherited from CommonApplicationLogic.)
Protected fieldm_DataStore (Inherited from CommonApplicationLogic.)
Protected fieldm_EventTimer (Inherited from CommonApplicationLogic.)
Protected fieldm_FinishNotifiables (Inherited from CommonApplicationLogic.)
Protected fieldm_Glue (Inherited from CommonApplicationLogic.)
Protected fieldm_Instrumentation (Inherited from CommonApplicationLogic.)
Protected fieldm_Log (Inherited from CommonApplicationLogic.)
Protected fieldm_ObjectStore (Inherited from CommonApplicationLogic.)
Protected fieldm_SecurityManager (Inherited from CommonApplicationLogic.)
Protected fieldm_Throttling (Inherited from CommonApplicationLogic.)
Protected fieldm_TimeSource (Inherited from CommonApplicationLogic.)
Protected fieldStatic members_Instance
Back to Top
Properties

  NameDescription
Public propertyActive
Returns true when application instance is active and working. This property returns false as soon as application finalization starts on shutdown Use to exit long-running loops and such
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberAppName
Returns application name
Public propertyStatic memberCmdArgs
References command line arguments configuration, so one can use it as:
if (Servicepplication.CmdArgs["DeleteFiles"].Exists)
{
  // this will run if process was invoked like so: process.exe /deleteFiles
}
Public propertyCommandArgs
References command line arguments configuration, so one can use it as:
if (ServiceApplication.Instance.CommandArgs["DeleteFiles"].Exists)
{
  // this will run if process was invoked like so: process.exe /deleteFiles
}
Public propertyConfigRoot
Provides access to configuration root for the whole application
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberConfRoot
Provides access to configuration root for the whole application
Public propertyStatic memberContextAvailable
Indicates whether application context was allocated
Public propertyStatic memberData
References application data store
Public propertyDataStore
References application data store
(Inherited from CommonApplicationLogic.)
Public propertyDisposed
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.)
Public propertyDisposeStarted
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.)
Public propertyEventTimer
References event timer which maintains and runs scheduled Event instances
(Inherited from CommonApplicationLogic.)
Public propertyGlue
References glue that can be used to interconnect remote instances
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberGlues
References glue that can be used to connect to remote entities
Public propertyStatic memberInstance
References a singleton instance of BaseApplication
Public propertyInstanceID
Returns unique identifier of this running instance
(Inherited from CommonApplicationLogic.)
Public propertyInstrumentation
References application instrumentation
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberInstruments
References application instrumentation
Public propertyStatic memberIsActive
Returns true when application instance is active and working. This property returns false as soon as application finalization starts on shutdown Use to exit long-running loops and such
Public propertyIsUnitTest (Inherited from CommonApplicationLogic.)
Public propertyLocalizedTime
Returns current time localized per TimeLocation
(Inherited from CommonApplicationLogic.)
Public propertyLog
References application logger
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberLogger
References application logger
Public propertyName
Returns the name of this application
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberObjects
References application object store. Objects will survive application termination
Public propertyObjectStore
References application object store. Objects will survive application termination
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberSecurity
References security manager that performs user authentication based on passed credentials and other security-related global tasks
Public propertySecurityManager
References security manager that performs user authentication based on passed credentials and other security-related global tasks
(Inherited from CommonApplicationLogic.)
Public propertyShutdownStarted
Returns true to indicate that Dispose() has been called and shutdown has started
(Inherited from CommonApplicationLogic.)
Public propertyStartTime
Returns timestamp when application started as localized app time
(Inherited from CommonApplicationLogic.)
Public propertyStopping
Returns true to indicate that Stop() was called
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberThrottles
References application throttling
Public propertyThrottling
References application throttling
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberTime
References time source - an entity that supplies local and UTC times. The concrete implementation may elect to get accurate times from the network or other external precision time sources (i.e. NASA atomic clock)
Public propertyTimeLocation
Returns time location of this LocalizedTimeProvider implementation
(Inherited from CommonApplicationLogic.)
Public propertyStatic memberTimer
References event timer which maintains and runs scheduled Event instances
Public propertyTimeSource
References time source - an entity that supplies local and UTC times. The concrete implementation may elect to get accurate times from the network or other external precision time sources (i.e. NASA atomic clock)
(Inherited from CommonApplicationLogic.)
Back to Top
See Also