How to retrieve the current state of a projection via the EventStore.Client API if the projection runs “foreachStream”?
The only way I’ve found so far is ProjectionManager.GetState() which does not have a stream parameter.
However, I cannot find the correct ProjectionManager method call to get the state of such an per-stream-projection, calling GetState(projectionName, credentials) returns nothing - of course - because it loads */projection/myprojection *and not /projection/myprojection?partition=STREAM
It’s quite possible that projections manager was never updated to allow that. I’ll open an issue on GitHub. Can you confirm that get with partition=stream works?