Interface ICanProvideKeyForCommand
- Namespace
- Cratis.Arc.Commands
- Assembly
- Cratis.Arc.Core.dll
Defines a command that composes the key identifying what it acts on.
public interface ICanProvideKeyForCommand
- Extension Methods
Remarks
A command that is keyed by something other than one of its own properties — a composite of two of them, a value derived from them — declares the key itself rather than leaving it to be inferred. This is what a read model backing provider loads the read model by, so it is the same key in every store.
Methods
GetKey()
Gets the key identifying what the command acts on.
string? GetKey()
Returns
- string
The key, or null when the command carries nothing to compose one from.