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