IApplication MembersNFX Class Library

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

The IApplication type exposes the following members.
Methods

  NameDescription
Public methodLocalizedTimeToUniversalTime
Converts localized time to UTC time as of TimeLocation property
(Inherited from ILocalizedTimeProvider.)
Public methodMakeNewSessionInstance
Factory method that creates new session object suitable for partcular application type
Public methodNotifyAllConfigSettingsAboutChange
Forces notification of all registered IConfigSettings-implementers about configuration change
Public methodRegisterAppFinishNotifiable
Registers an instance of IApplicationFinishNotifiable with application container to receive a call when underlying application instance will finish its lifecycle.
Public methodRegisterConfigSettings
Registers an instance of IConfigSettings with application container to receive a call when underlying app configuration changes
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
Public methodUniversalTimeToLocalizedTime
Converts universal time to local time as of TimeLocation property
(Inherited from ILocalizedTimeProvider.)
Public methodUnregisterAppFinishNotifiable
Removes the registration of IApplicationFinishNotifiable from application container
Public methodUnregisterConfigSettings
Removes the registration of IConfigSettings from application container
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 or Stop() was called Use to exit long-running loops and such
Public propertyConfigRoot
References application configuration root
Public propertyDataStore
References application data store
Public propertyEventTimer
References event timer - an entity that maintains and runs scheduled instances of Event
Public propertyGlue
References glue implementation that may be used to "glue" remote instances/processes/contracts together
Public propertyInstanceID
Returns unique identifier of this running instance
Public propertyInstrumentation
References instrumentation for this application instance
Public propertyIsUnitTest
True if app is launched as a unit test as set by the app config "unit-test=true" The general use of this flag is discouraged as code cnstructs should not form special cases just for unit testing, however in some cases this flag is usefull. It is not exposed via App. static accessors
Public propertyLocalizedTime
Returns current time localized per TimeLocation
(Inherited from ILocalizedTimeProvider.)
Public propertyLog
References app log
Public propertyName (Inherited from INamed.)
Public propertyObjectStore
References object store that may be used to persist object graphs between volatile application shutdown cycles
Public propertySecurityManager
References security manager that performs user authentication based on passed credentials and other security-related global tasks
Public propertyShutdownStarted
Returns true after Dispose() was called to indicate that application is shutting down
Public propertyStartTime
Returns timestamp when application started as localized app time
Public propertyStopping
Returns true after Stop() was called
Public propertyThrottling
References throttling for this application instance
Public propertyTimeLocation
Returns the location
(Inherited from ILocalizedTimeProvider.)
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)
Back to Top
See Also