Click or drag to resize

ApplicationContext Methods

The ApplicationContext type exposes the following members.

Methods
  NameDescription
Public methodAddServiceProvider
Add service
Public methodAlert
Alert dialog
Public methodConfirm
Confirmation dialog
Public methodDemand(String)
Demand the policy
Public methodDemand(String, IPrincipal)
Demand policy enforcement
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExit
Close the application
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
Instructs the current application context to get a unique identifier that should be used for encrypting/decrypting the SanteDB databases. This should be a consistent key (i.e. generate from machine, user SID, etc.).
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetService(Type)
Gets the service object of the specified type.
Public methodGetServiceTService
Gets the service.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUserConfiguration
Gets user preference application
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveServiceProvider
Remove a service provider
Public methodSaveUserConfiguration
Save user configuration
Public methodSetProgress
Sets the progress
Public methodShowToast
Shows a toast on the application context
Public methodSoftDemand
Demand policy enforcement
Public methodStart
Start the daemon services
Public methodStop
Force stop
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddBusinessRule(Type)Overloaded.
Add a business rule service to this instance of me or the next instance
(Defined by BusinessRulesExtensions.)
Public Extension MethodAddBusinessRuleTModel(Type)Overloaded.
Adds a new business rule service for the specified model to the application service otherwise adds it to the chain
(Defined by BusinessRulesExtensions.)
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 MethodGetBusinessRuleService
Add a business rule service to this instance of me or the next instance
(Defined by BusinessRulesExtensions.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Public Extension MethodGetRestClient
Gets the rest client.
(Defined by ConfigurationExtensions.)
Public Extension MethodGetServiceT
Helper extension method for getting strongly typed service
(Defined by ApplicationServiceContext.)
Top
See Also