public SagaEventStoreRepository(IStoreEvents eventStore, IConstructSagas factory) { Guard.NotNull(() => eventStore, eventStore); Guard.NotNull(() => factory, factory); this.eventStore = eventStore; this.factory = factory; }
public SagaEventStoreRepository(IStoreEvents eventStore, IConstructSagas factory) { _eventStore = eventStore; _factory = factory; }
/// <summary> /// Creates and instance of the Saga Repository /// </summary> /// <param name="eventStore"></param> /// <param name="factory"></param> /// <param name="undispatchedMessageHeader">allows the user to specify the prefix used to store the undispatched commands inside the Commit.Headers dictionary. /// It is useful for all those databases that do not allow to have . (dot) in property names (like MongoDB, if we chose to not serialize the Headers dictionary as /// ArrayOfArrays).</param> public SagaEventStoreRepository(IStoreEvents eventStore, IConstructSagas factory, string undispatchedMessageHeader) : this(eventStore, factory) { UndispatchedMessageHeader = undispatchedMessageHeader; }