Table of Contents

Interface ITemplateReader

Namespace
MailStencil
Assembly
MailStencil.Core.dll

Reads exact template snapshots without requiring write access.

public interface ITemplateReader

Remarks

Implementations must support concurrent calls. Return null only for a missing template variant/version; propagate cancellation, authorization, transport and malformed-content failures. Unsupported explicit version selection must throw NotSupportedException.

Methods

GetAsync(TemplateRequest, CancellationToken)

Reads an exact snapshot, or returns null when it does not exist.

Task<EmailTemplateSource?> GetAsync(TemplateRequest request, CancellationToken cancellationToken = default)

Parameters

request TemplateRequest
cancellationToken CancellationToken

Returns

Task<EmailTemplateSource>