You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andrey Leskov edited this page Aug 2, 2016
·
2 revisions
GridDomain has events replay functionality. It is provided by AkkaEventsChronicle class.
public class AkkaEventsChronicle
{
public AkkaEventsChronicle(AkkaConfiguration akkaConf)
{
}
IMessagesRouter Router { get; }
void Replay<TAggregate>(Guid aggregateId, Predicate<object> eventFilter) where TAggregate : AggregateBase;
}
It will create a new actor system and load all domain events for given aggregate type \ id.
After all events will be published to system transport, and can be consumed by Router subscribers.
Events chronicles will work only with persisted akka journals such as sql, due to in-memory journal can not be shared between two actor systems.