Questions tagged [commondomain]

11 questions
3
votes
1 answer

NEventStore Commit Guid, what is it really used for?

I understand the CommitId is used internally by Jonathan Oliver's event store. So far I've always provided a Guid.NewGuid() for the CommitId. When would you every want to do anything different? I don't understand why it is exposed within his common…
CRG
  • 677
  • 1
  • 7
  • 16
2
votes
1 answer

What's the proper way to handle concurrency exceptions in EventStore?

Using JOliver EventStore 3.0 and reciving commands from NServiceBus, what's the proper way to handle concurrency exceptions? If I have more than one worker thread, this could be a common occurance. Option 1 try { // store the event …
Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
2
votes
4 answers

How to get list of aggregates using JOliviers's CommonDomain and EventStore?

The repository in the CommonDomain only exposes the "GetById()". So what to do if my Handler needs a list of Customers for example?
Werner
  • 1,229
  • 1
  • 10
  • 24
2
votes
3 answers

CommonDomain - how to unit test aggregate root

I have a small system that uses Jonathan Oliver's CommonDomain and EventStore. How can I unit test my aggregate roots in order to verify that correct events are raised? Consider following aggregate root: public class Subscriber : AggregateBase { …
Jakub Konecki
  • 45,581
  • 7
  • 87
  • 126
1
vote
1 answer

Howto: Use single transaction to span update of multiple aggregates

In our application we are using Jonathan Oliver's EventStore and CommonDomain. The database we use to store our events is either SQL Server or Oracle. For a specific use case we have the requirement to update several aggregates through one single…
Gabriel
  • 21
  • 3
1
vote
1 answer

CommonDomain/EventStore Interface Fetching

I'd like to access my aggregate root by an interface it implements: repository.GetById[[IMyInterface]](id); What do I need to tell CommonDomain or EventStore to accomplish this? I believe my IConstructAggregates receives the Implementation…
SonOfNun
  • 957
  • 7
  • 11
1
vote
1 answer

CommonDomain and NEventStore

I am currently using CommonDomain, and this works currently very well, but I have a few questions: Is CommonDomain still being actively maintained? I see on GitHub that the last work was done around 2 years ago:…
justin
  • 13
  • 2
0
votes
1 answer

CommonDomain/EventStore/CQRS : Where is the test project for commondomain?

I have downloaded CommonDomain from GitHub and I can see a directory / src / tests / CommonDomain.AcceptanceTests which contains the file "When_an_aggregate_is_persisted.cs" but there is no project that uses it. Also the base class…
JD.
  • 15,171
  • 21
  • 86
  • 159
0
votes
1 answer

Dispatching AR version together with its event in JO's CommonDomain

I'm looking for the right way of communicating the current version of my Aggregate to the Read Model. Currently the only possibility I see is to do the following: public class Child : AggregateBase { ... public void ChangeName(string…
0
votes
1 answer

J Oliver EventStore/CommonDomain SagaBase

Why is SagaBase generic in Jonathan Oliver's CommonDomain library?
Joe
  • 169
  • 9
0
votes
1 answer

J Oliver EventStore V2.0 CommonDomain Snapshot

Whats considered best practice to take Snapshots of the aggregates when using EventStore and CommonDomain (Is there a better place to ask, usergroup, something like that) ?
andy
  • 1
  • 1