-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDomainModelAssociatedEventHandler.cs
More file actions
47 lines (44 loc) · 2.08 KB
/
DomainModelAssociatedEventHandler.cs
File metadata and controls
47 lines (44 loc) · 2.08 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
45
46
47
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Command;
using RapidField.SolidInstruments.Core.Domain;
using System;
namespace RapidField.SolidInstruments.EventAuthoring
{
/// <summary>
/// Processes a single <see cref="IDomainModelAssociatedEvent{TModel}" />.
/// </summary>
/// <typeparam name="TModel">
/// The type of the associated domain model.
/// </typeparam>
/// <typeparam name="TEvent">
/// The type of the event that is processed by the handler.
/// </typeparam>
public abstract class DomainModelAssociatedEventHandler<TModel, TEvent> : DomainModelEventHandler<TModel, TEvent>
where TModel : class, IDomainModel
where TEvent : class, IDomainModelAssociatedEvent<TModel>
{
/// <summary>
/// Initializes a new instance of the <see cref="DomainModelAssociatedEventHandler{TModel, TEvent}" /> class.
/// </summary>
/// <param name="mediator">
/// A processing intermediary that is used to process sub-commands.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="mediator" /> is <see langword="null" />.
/// </exception>
protected DomainModelAssociatedEventHandler(ICommandMediator mediator)
: base(mediator)
{
return;
}
/// <summary>
/// Releases all resources consumed by the current <see cref="DomainModelAssociatedEventHandler{TModel, TEvent}" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
}