dCDR Subscription Definition Provider

ISubscriptionRepository in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Represents a repository which maintains subscription definitions

Description

This service is used to maintain instances of SubscriptionDefinition which contain SQL (or other query grammar) to allow dCDR instances to easily query data on the HDSI interface using the _subscription parameter. The HDSI maps the subscription ID with the local data provider and then executes the appopriate query against the persistence layer to ensure fast synchronization of new data.

Implementations

AppletSubscriptionRepository - (SanteDB.Core.Applets)

An implementation of the ISubscriptionRepository that loads definitions from applets

Service Registration

...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Core.Applets.Services.Impl.AppletSubscriptionRepository, SanteDB.Core.Applets, Version=2.1.151.0, Culture=neutral, PublicKeyToken=null" />
		...
	</serviceProviders>

Example Implementation

/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MySubscriptionRepository : SanteDB.Core.Services.ISubscriptionRepository { 
	public String ServiceName => "My own ISubscriptionRepository service";
}

References

Last updated