Skip to main content

IPreDocumentModification<TDocument>

Namespace: Meshmakers.Octo.Runtime.Contracts.Repositories

Interface of algorithms that run before the persistence of documents

public interface IPreDocumentModification<TDocument>

Type Parameters​

TDocument

Methods​

RunAsync(IOctoSession, IRepositoryDataSource, IEnumerable<TDocument>)​

Runs pre-persistence modifications on the given documents

Task RunAsync(IOctoSession session, IRepositoryDataSource repositoryDataSource, IEnumerable<TDocument> documents)

Parameters​

session IOctoSession
Session to use for the operation

repositoryDataSource IRepositoryDataSource
Repository data source to load or update additional data

documents IEnumerable<TDocument>
The documents to modify

Returns​

Task