Click or drag to resize

ApplicationContext Class

Application context.
Inheritance Hierarchy

Namespace:  SanteDB.DisconnectedClient
Assembly:  SanteDB.DisconnectedClient.Core (in SanteDB.DisconnectedClient.Core.dll) Version: 2.2.1
Syntax
public abstract class ApplicationContext : IServiceProvider, 
	IApplicationServiceContext, IPolicyEnforcementService, IServiceImplementation

The ApplicationContext type exposes the following members.

Constructors
  NameDescription
Public methodApplicationContext
Initializes a new instance of the ApplicationContext class.
Top
Properties
  NameDescription
Public propertyApplication
Gets the application information for the currently running application.
Public propertyConfiguration
Gets the configuration manager
Public propertyConfigurationManager
Gets the configuration manager
Public propertyConfigurationPersister
Gets the configuration persister
Public propertyStatic memberCurrent
Gets the current application context
Public propertyDevice
Gets the device information for the currently running device
Public propertyExecutionUuid
Execution UUID
Public propertyHostType
Gets the host type
Public propertyIdentityProviderService
Gets the identity provider service.
Public propertyIsRunning
Returns true if service is running
Public propertyModes
Gets the allowed synchronization modes
Public propertyPolicyDecisionService
Gets the policy decision service.
Public propertyPolicyInformationService
Gets the policy information service.
Public propertyRoleProviderService
Gets the role provider service.
Public propertyServiceName
Get the service name
Public propertyStartTime
Gets the start time of the service
Top
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
Events
  NameDescription
Public eventStatic memberProgressChanged
Public eventStarted
Fired when the application startup has completed
Public eventStarting
Fired when the application is starting
Public eventStopped
Fired when the application has stopped
Public eventStopping
Fired when the application is stopping
Top
Fields
  NameDescription
Protected fieldm_tracer
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