-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIReportable.cs
More file actions
44 lines (42 loc) · 1.87 KB
/
IReportable.cs
File metadata and controls
44 lines (42 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
namespace RapidField.SolidInstruments.EventAuthoring
{
/// <summary>
/// Represents an object that can be described by an <see cref="IEvent" />.
/// </summary>
/// <typeparam name="TEvent">
/// The type of the event that describes the object.
/// </typeparam>
public interface IReportable<TEvent> : IReportable
where TEvent : class, IEvent
{
/// <summary>
/// Composes an <see cref="IEvent" /> representing information about the current <see cref="IReportable{TEvent}" />.
/// </summary>
/// <returns>
/// An <see cref="IEvent" /> representing information about the current object.
/// </returns>
/// <exception cref="EventAuthoringException">
/// An exception was raised while composing the event.
/// </exception>
public new TEvent ComposeEvent();
}
/// <summary>
/// Represents an object that can be described by an <see cref="IEvent" />.
/// </summary>
public interface IReportable
{
/// <summary>
/// Composes an <see cref="IEvent" /> representing information about the current <see cref="IReportable" />.
/// </summary>
/// <returns>
/// An <see cref="IEvent" /> representing information about the current object.
/// </returns>
/// <exception cref="EventAuthoringException">
/// An exception was raised while composing the event.
/// </exception>
public IEvent ComposeEvent();
}
}