-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIDomainModelCommand.cs
More file actions
50 lines (46 loc) · 1.69 KB
/
IDomainModelCommand.cs
File metadata and controls
50 lines (46 loc) · 1.69 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
48
49
50
// =================================================================================================================================
// 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>
/// Represents a command to perform an action related to an object that models a domain construct.
/// </summary>
/// <typeparam name="TModel">
/// The type of the associated domain model.
/// </typeparam>
public interface IDomainModelCommand<TModel> : IDomainModelCommand
where TModel : class, IDomainModel
{
/// <summary>
/// Gets the desired state of the associated domain model.
/// </summary>
public TModel Model
{
get;
}
}
/// <summary>
/// Represents a command to perform an action related to an object that models a domain construct.
/// </summary>
public interface IDomainModelCommand : IDomainCommand
{
/// <summary>
/// Gets a classification that describes the effect of a the current <see cref="IDomainModelCommand" /> upon the associated
/// model.
/// </summary>
public DomainModelCommandClassification Classification
{
get;
}
/// <summary>
/// Gets the type of the associated domain model.
/// </summary>
public Type ModelType
{
get;
}
}
}