Click or drag to resize

DcApplicationContext Methods

The DcApplicationContext type exposes the following members.

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
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