Documentation Coverage Report
Current view: top level - Cqrs/Snapshots - ISnapshotStore.cs Hit Total Coverage
Version: 2.2 Artefacts: 2 2 100.0 %
Date: 2017-09-22

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="Chinchilla Software Limited">
       4             : // //   Copyright Chinchilla Software Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : using Cqrs.Domain;
      11             : 
      12             : namespace Cqrs.Snapshots
      13             : {
      14             :         /// <summary>
      15             :         /// Stores the most recent <see cref="Snapshot">snapshots</see> for replay and <see cref="IAggregateRoot{TAuthenticationToken}"/> rehydration on a <see cref="SnapshotAggregateRoot{TAuthenticationToken,TSnapshot}"/>.
      16             :         /// </summary>
      17             :         public interface ISnapshotStore
      18             :         {
      19             :                 /// <summary>
      20             :                 /// Get the latest <see cref="Snapshot"/> from storage.
      21             :                 /// </summary>
      22             :                 /// <typeparam name="TAggregateRoot">The <see cref="Type"/> of <see cref="IAggregateRoot{TAuthenticationToken}"/> to find a snapshot for.</typeparam>
      23             :                 /// <param name="id">The identifier of the <see cref="IAggregateRoot{TAuthenticationToken}"/> to get the most recent <see cref="Snapshot"/> of.</param>
      24             :                 /// <returns>The most recent <see cref="Snapshot"/> of</returns>
      25           1 :                 Snapshot Get<TAggregateRoot>(Guid id);
      26             : 
      27             :                 /// <summary>
      28             :                 /// Saves the provided <paramref name="snapshot"/> into storage.
      29             :                 /// </summary>
      30             :                 /// <param name="snapshot">the <see cref="Snapshot"/> to save and store.</param>
      31           1 :                 void Save(Snapshot snapshot);
      32             :         }
      33             : }

Generated by: LCOV version 1.10