-
Notifications
You must be signed in to change notification settings - Fork 20
Classification
Duncan Jones edited this page Nov 19, 2019
·
8 revisions
A classification is a piece of code that runs over the event stream for an entity in order to decide whether that entity instance is included or excluded from the group rule of the classifier
For each event in the stream it needs to decide (a) am I interested in this kind of event and if so (b) what does this mean to group classification.
The following classification runs over the event stream for a command to classify if the command is completed.
/// <summary>
/// A classification to denote that a command execution has completed
/// </summary>
public class Completed
: ClassificationBase,
IClassifyEventType<CommandHandler.Events.Completed>
{
public Classification.ClassificationResults ClassifyEventInstance(Events.Completed eventInstance)
{
return Classification.ClassificationResults.Include;
}
}