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 Cqrs.Snapshots;
10 :
11 : namespace Cqrs.Events
12 : {
13 : /// <summary>
14 : /// Deserialises <see cref="Snapshot"/> from a serialised state.
15 : /// </summary>
16 : public interface ISnapshotDeserialiser
17 : {
18 : /// <summary>
19 : /// Deserialise the provided <paramref name="eventData"/> into an <see cref="Snapshot"/>.
20 : /// </summary>
21 : /// <param name="eventData">The <see cref="EventData"/> to Deserialise.</param>
22 1 : Snapshot Deserialise(EventData eventData);
23 : }
24 : }
|