Skip to content

Commit

Permalink
Merge pull request #117 from dolittle/stream-aggregate-events
Browse files Browse the repository at this point in the history
Method for getting the aggreagte root version
  • Loading branch information
woksin authored Sep 1, 2022
2 parents 07efd7f + a9fd1a4 commit a0e45b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Source/Runtime/Aggregates/AggregateRoots.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ message AggregateRootAliasRegistrationResponse {
protobuf.Failure failure = 1;
}

message AggregateRootVersionRequest {
services.CallRequestContext callContext = 1;
artifacts.Artifact aggregateRoot = 2;
string eventSourceId = 3;
}

message AggregateRootVersionResponse {
protobuf.Failure failure = 1;
uint64 aggregateRootVersion = 2;
}

service AggregateRoots {
rpc RegisterAlias(AggregateRootAliasRegistrationRequest) returns(AggregateRootAliasRegistrationResponse);
rpc GetVersion(AggregateRootVersionRequest) returns(AggregateRootVersionResponse);
}

0 comments on commit a0e45b1

Please sign in to comment.