Click or drag to resize

DcApplicationContext Class

Test application context
Inheritance Hierarchy
SystemObject
  SanteDB.DisconnectedClientApplicationContext
    SanteDB.DisconnectedClient.UIDcApplicationContext

Namespace:  SanteDB.DisconnectedClient.UI
Assembly:  SanteDB.DisconnectedClient.UI (in SanteDB.DisconnectedClient.UI.dll) Version: 2.2.1
Syntax
public class DcApplicationContext : ApplicationContext

The DcApplicationContext type exposes the following members.

Constructors
  NameDescription
Public methodDcApplicationContext
Initializes a new instance of the DcApplicationContext class.
Top
Properties
  NameDescription
Public propertyApplication
Get the application
(Overrides ApplicationContextApplication.)
Public propertyConfiguration
Gets the configuration manager
(Inherited from ApplicationContext.)
Public propertyConfigurationManager
Gets the configuration manager
(Inherited from ApplicationContext.)
Public propertyConfigurationPersister
Gets the configuration persister
(Inherited from ApplicationContext.)
Public propertyDevice
Gets the device information for the currently running device
(Inherited from ApplicationContext.)
Public propertyExecutionUuid
Execution UUID
(Inherited from ApplicationContext.)
Public propertyHostType
Gets or sets the host type
(Overrides ApplicationContextHostType.)
Public propertyIdentityProviderService
Gets the identity provider service.
(Inherited from ApplicationContext.)
Public propertyInstanceName
Gets the instance name
Public propertyIsRunning
Returns true if service is running
(Inherited from ApplicationContext.)
Public propertyModes
Gets or sets the synchronization modes
(Overrides ApplicationContextModes.)
Public propertyPolicyDecisionService
Gets the policy decision service.
(Inherited from ApplicationContext.)
Public propertyPolicyInformationService
Gets the policy information service.
(Inherited from ApplicationContext.)
Public propertyRoleProviderService
Gets the role provider service.
(Inherited from ApplicationContext.)
Public propertyServiceName
Get the service name
(Inherited from ApplicationContext.)
Public propertyStartTime
Gets the start time of the service
(Inherited from ApplicationContext.)
Top
Methods
  NameDescription
Public methodAddServiceProvider
Add service
(Inherited from ApplicationContext.)
Public methodAlert
Show an alert
(Overrides ApplicationContextAlert(String).)
Public methodConfirm
Confirmation
(Overrides ApplicationContextConfirm(String).)
Public methodDemand(String)
Demand the policy
(Inherited from ApplicationContext.)
Public methodDemand(String, IPrincipal)
Demand policy enforcement
(Inherited from ApplicationContext.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExit
Exit the application
(Overrides ApplicationContextExit.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCurrentContextSecurityKey
In the SanteDB DC setting the current context security key is the current windows user SID (since we're storing data in appdata it is encrypted per user SID)
(Overrides ApplicationContextGetCurrentContextSecurityKey.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetService(Type)
Gets the service object of the specified type.
(Inherited from ApplicationContext.)
Public methodGetServiceTService
Gets the service.
(Inherited from ApplicationContext.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUserConfiguration
Gets user preference application
(Inherited from ApplicationContext.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveServiceProvider
Remove a service provider
(Inherited from ApplicationContext.)
Public methodSaveUserConfiguration
Save user configuration
(Inherited from ApplicationContext.)
Public methodSetProgress
Sets the progress
(Inherited from ApplicationContext.)
Public methodShowToast
Show toast
(Overrides ApplicationContextShowToast(String).)
Public methodSoftDemand
Demand policy enforcement
(Inherited from ApplicationContext.)
Public methodStart
Start the daemon services
(Inherited from ApplicationContext.)
Public methodStatic memberStartContext
Start the application context
Public methodStatic memberStartRestore
Start a restore context
Public methodStatic memberStartTemporary
Starts the application context using in-memory default configuration for the purposes of configuring the software
Public methodStop
Force stop
(Inherited from ApplicationContext.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventStarted
Fired when the application startup has completed
(Inherited from ApplicationContext.)
Public eventStarting
Fired when the application is starting
(Inherited from ApplicationContext.)
Public eventStopped
Fired when the application has stopped
(Inherited from ApplicationContext.)
Public eventStopping
Fired when the application is stopping
(Inherited from ApplicationContext.)
Top
Fields
  NameDescription
Protected fieldm_tracer (Inherited from ApplicationContext.)
Top
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Public Extension MethodGetRestClient
Gets the rest client.
(Defined by ConfigurationExtensions.)
Top
See Also