EventStore Replay streams C# category wise

I’m very new to the Event Store. I have some test streams data in Event Store.

a_test_stream
EventDemo-4f908f77-62b8-4944-8f01-a6a301c06c23
EventDemo-407cec47-22b5-4ad7-87ea-958bff516a71
EventDemo-d6042140-a5bb-49eb-9646-b8b6069474d7
EventSourceDemo-864c4dcf-dc6a-48ca-9904-ae99e6107f5b
EventSourceDemo-3a7897c0-e9d2-4800-aa7e-692e69f9c4c5
EventSourceDemo-e479f7a4-0fca-4f4e-9506-227d202bddcc
EventSourceDemo-c42336fb-0b92-4700-a200-1377a71b69fe
EventSourceDemo-d48b85aa-6899-4e1a-8ec2-4e8d01d8102a
EventSourceDemo-bc417abe-fe2a-481f-9a87-0956297bfb9f
EventSourceDemo-c981684f-7028-4c6c-b599-b1fc87089711
EventSourceDemo-54c4592a-a777-455e-92cb-362bbfc0cc9c
EventSourceDemo-b77ee417-0b88-49e4-9d75-0991b52223cb
EventSourceDemo-7c3ee255-4c36-4e31-b9fc-542f879817d5
test-stream

I am only able to get events of one stream only(EventSourceDemo-b77ee417-0b88-49e4-9d75-0991b52223cb).

var connection = EventStoreConnection.Create(new IPEndPoint(IPAddress.Parse(“127.0.0.1”), 1113));

connection.ConnectAsync().Wait();

var streamEvents = connection.ReadStreamEventsForwardAsync(“EventSourceDemo-b77ee417-0b88-49e4-9d75-0991b52223cb”, 0, pageSize,false).Result;

How can I get all events of category “EventSourceDemo” in c#?

I want to build snapshot state of all Ids in c#.

Turning on the $by_category projection you can then look at the $ce-EventSourceDemo stream.

Thank you. It is working now.