Click or drag to resize

SanteDBContextBase Class

A basic service context upon which other service contexts may be instantiated
Inheritance Hierarchy
SystemObject
  SanteDB.CoreSanteDBContextBase
    SanteDB.ClientClientApplicationContextBase

Namespace: SanteDB.Core
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public abstract class SanteDBContextBase : IApplicationServiceContext, 
	IServiceProvider, IDisposable

The SanteDBContextBase type exposes the following members.

Constructors
 NameDescription
Protected methodSanteDBContextBase Creates a new instance of the host context
Top
Properties
 NameDescription
Public propertyActivityUuid Gets the identifier for this context
Public propertyApplicationName Application name
Protected propertyDependencyServiceManager Dependency service manager
Public propertyHostType Gets the host type
Public propertyIsRunning Gets whether the domain is running
Public propertyServiceName Gets the service name
Public propertyStartTime Gets the start time of the applicaton
Top
Methods
 NameDescription
Protected methodAddServiceProvider Add service provider
Public methodDispose Dispose
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetService Get a service from this host context
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStart Start the application context
Public methodStop Stop the application context
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventStarted Fired after application startup is complete
Public eventStarting Fired when the application context starting
Public eventStopped Fired after the appplication context is stopped
Public eventStopping Fired wehn the application context commences stop
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 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 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)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also