Click or drag to resize

IApplicationServiceContext Interface

Represents an application service context

Namespace: SanteDB.Core
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public interface IApplicationServiceContext : IServiceProvider

The IApplicationServiceContext type exposes the following members.

Properties
 NameDescription
Public propertyActivityUuid Gets the activity UUID
Public propertyApplicationName Gets the name of the application
Public propertyHostType Type of application hosting this SanteDB
Public propertyIsRunning Get whether the service is running
Public propertyStartTime Gets the start time
Top
Methods
 NameDescription
Public methodGetServiceGets the service object of the specified type.
(Inherited from IServiceProvider)
Public methodStart Start the application context
Public methodStop Stop the service host context
Top
Events
 NameDescription
Public eventStarted Fired when the service context is started
Public eventStarting Fired when the service context is starting
Public eventStopped Fired when the service has stopped
Public eventStopping Fired when the service is stopping
Top
Extension Methods
 NameDescription
Public Extension MethodAddBusinessRule Add a business rule service to this instance of me or the next instance
(Defined by BusinessRulesExtensions)
Public Extension MethodAddBusinessRuleTModel 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 MethodGetApplicationProviderService Get application provider service
(Defined by ExtensionMethods)
Public Extension MethodGetAssigningAuthorityService Gets the assigning authority repository service.
(Defined by ExtensionMethods)
Public Extension MethodGetAuditService Get the audit service.
(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 MethodGetBusinessRulesServiceT Gets the business rules service for a specific information model.
(Defined by ExtensionMethods)
Public Extension MethodGetConceptService Get the concept service.
(Defined by ExtensionMethods)
Public Extension MethodGetNotificationService Gets the INotificationService instance from context.
(Defined by ExtensionMethods)
Public Extension MethodGetServiceT Helper extension method for getting strongly typed service
(Defined by ApplicationServiceContext)
Top
See Also