-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDomainModelAssociatedCommandHandler.cs
More file actions
46 lines (43 loc) · 2.05 KB
/
DomainModelAssociatedCommandHandler.cs
File metadata and controls
46 lines (43 loc) · 2.05 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
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Core.Domain;
using System;
namespace RapidField.SolidInstruments.Command
{
/// <summary>
/// Processes a single <see cref="IDomainModelAssociatedCommand{TModel}" />.
/// </summary>
/// <typeparam name="TModel">
/// The type of the associated domain model.
/// </typeparam>
/// <typeparam name="TCommand">
/// The type of the command that is processed by the handler.
/// </typeparam>
public abstract class DomainModelAssociatedCommandHandler<TModel, TCommand> : DomainModelCommandHandler<TModel, TCommand>
where TModel : class, IDomainModel
where TCommand : class, IDomainModelAssociatedCommand<TModel>
{
/// <summary>
/// Initializes a new instance of the <see cref="UpdateDomainModelCommandHandler{TModel, TCommand}" /> 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 DomainModelAssociatedCommandHandler(ICommandMediator mediator)
: base(mediator)
{
return;
}
/// <summary>
/// Releases all resources consumed by the current <see cref="DomainModelAssociatedCommandHandler{TModel, TCommand}" />.
/// </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);
}
}