ApplicationContext Class |
Namespace: SanteDB.DisconnectedClient
The ApplicationContext type exposes the following members.
Name | Description | |
---|---|---|
ApplicationContext |
Initializes a new instance of the ApplicationContext class.
|
Name | Description | |
---|---|---|
Application |
Gets the application information for the currently running application.
| |
Configuration |
Gets the configuration manager
| |
ConfigurationManager |
Gets the configuration manager
| |
ConfigurationPersister |
Gets the configuration persister
| |
Current |
Gets the current application context
| |
Device |
Gets the device information for the currently running device
| |
ExecutionUuid |
Execution UUID
| |
HostType |
Gets the host type
| |
IdentityProviderService |
Gets the identity provider service.
| |
IsRunning |
Returns true if service is running
| |
Modes |
Gets the allowed synchronization modes
| |
PolicyDecisionService |
Gets the policy decision service.
| |
PolicyInformationService |
Gets the policy information service.
| |
RoleProviderService |
Gets the role provider service.
| |
ServiceName |
Get the service name
| |
StartTime |
Gets the start time of the service
|
Name | Description | |
---|---|---|
AddServiceProvider |
Add service
| |
Alert |
Alert dialog
| |
Confirm |
Confirmation dialog
| |
Demand(String) |
Demand the policy
| |
Demand(String, IPrincipal) |
Demand policy enforcement
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Exit |
Close the application
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCurrentContextSecurityKey |
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.).
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetService(Type) |
Gets the service object of the specified type.
| |
GetServiceTService |
Gets the service.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUserConfiguration |
Gets user preference application
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveServiceProvider |
Remove a service provider
| |
SaveUserConfiguration |
Save user configuration
| |
SetProgress |
Sets the progress
| |
ShowToast |
Shows a toast on the application context
| |
SoftDemand |
Demand policy enforcement
| |
Start |
Start the daemon services
| |
Stop |
Force stop
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ProgressChanged | ||
Started |
Fired when the application startup has completed
| |
Starting |
Fired when the application is starting
| |
Stopped |
Fired when the application has stopped
| |
Stopping |
Fired when the application is stopping
|
Name | Description | |
---|---|---|
AddBusinessRule(Type) | Overloaded.
Add a business rule service to this instance of me or the next instance
(Defined by BusinessRulesExtensions.) | |
AddBusinessRuleTModel(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.) | |
ConvertTReturn |
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.) | |
GetBusinessRuleService |
Add a business rule service to this instance of me or the next instance
(Defined by BusinessRulesExtensions.) | |
GetInstanceOfTDomain |
Gets an instance of TDomain from me
(Defined by ModelExtensions.) | |
GetRestClient |
Gets the rest client.
(Defined by ConfigurationExtensions.) | |
GetServiceT |
Helper extension method for getting strongly typed service
(Defined by ApplicationServiceContext.) |