// This command is part of a long running process public Command(Guid id, TBusinessUseCase payload, CommandMetadata metadata) { Id = id; Payload = payload; Metadata = metadata; }
// This command starts a new workflow public Command(TBusinessUseCase payload) { Id = Guid.NewGuid(); Metadata = new CommandMetadata(Id, null); Payload = payload; }