ITagPersistenceService

ITagPersistenceService in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Taggable persistence service

Operations

OperationResponse/ReturnInput/ParameterDescription

Save

void

Guid sourceKey ITag tag

Save tag to source key

Implementations

Local Tag Persistence - (SanteDB.Server.Core)

Tag persistence service for act

Service Registration

...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Server.Core.Services.Impl.LocalTagPersistenceService, 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 MyTagPersistenceService : SanteDB.Core.Services.ITagPersistenceService { 
	public String ServiceName => "My own ITagPersistenceService service";
	/// <summary>
	/// Save tag to source key
	/// </summary>
	public void Save(Guid sourceKey,ITag tag){
		throw new System.NotImplementedException();
	}
}

References

Last updated