ITemplateDefinitionRepositoryService

ITemplateDefinitionRepositoryService in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Represents a repository which deals with metadata such as assigning authorities, concept classes, etc.

Operations

Implementations

LocalTemplateDefinitionRepositoryService - (SanteDB.Server.Core)

Represents a local metadata repository service

Service Registration

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

Example Implementation

/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyTemplateDefinitionRepositoryService : SanteDB.Core.Services.ITemplateDefinitionRepositoryService { 
	public String ServiceName => "My own ITemplateDefinitionRepositoryService service";
	/// <summary>
	/// Get tempate definition
	/// </summary>
	public TemplateDefinition GetTemplateDefinition(String mnemonic){
		throw new System.NotImplementedException();
	}
}

References

Last updated