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: 2.2.1
Syntax
public interface IApplicationServiceContext : IServiceProvider

The IApplicationServiceContext type exposes the following members.

Properties
  NameDescription
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 methodGetService
Gets the service object of the specified type.
(Inherited from IServiceProvider.)
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(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 MethodGetBusinessRuleService
Add a business rule service to this instance of me or the next instance
(Defined by BusinessRulesExtensions.)
Public Extension MethodGetServiceT
Helper extension method for getting strongly typed service
(Defined by ApplicationServiceContext.)
Top
See Also