User Notification Template Filler

INotificationTemplateFiller in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Represents a service that can fill the template

Operations

OperationResponse/ReturnInput/ParameterDescription

FillTemplate

NotificationTemplate

String id String lang Object model

Fill the template

Implementations

RazorNotificationTemplateFiller - (SanteDB.Server.Core)

Represents a notification template filler that uses Razor engine

Service Registration

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

Example Implementation

/// Example Implementation
using SanteDB.Core.Notifications;
/// Other usings here
public class MyNotificationTemplateFiller : SanteDB.Core.Notifications.INotificationTemplateFiller { 
	public String ServiceName => "My own INotificationTemplateFiller service";
	/// <summary>
	/// Fill the template
	/// </summary>
	public NotificationTemplate FillTemplate(String id,String lang,Object model){
		throw new System.NotImplementedException();
	}
}

References

Last updated