public EventStorePersistence(ExtendedActorSystem system) { system.Settings.InjectTopLevelFallback(DefaultConfig()); JournalSettings = EventStoreSettings.Create(system.Settings.Config.GetConfig("akka.persistence.journal.eventstore")); SnapshotStoreSettings = EventStoreSettings.Create(system.Settings.Config.GetConfig("akka.persistence.snapshot-store.eventstore")); }
public EventStoreSnapshotStore() { settings = EventStorePersistence.Get(Context.System).SnapshotStoreSettings; log = Context.GetLogger(); var serialization = Context.System.Serialization; serializer = serialization.FindSerializerForType(typeof(SelectedSnapshot)); connection = EventStoreConnection.Create(settings.ConnectionString, settings.ConnectionName); connection.ConnectAsync().Wait(); }
public EventStoreJournal() { system = Context.System; settings = EventStorePersistence.Get(Context.System).JournalSettings; log = Context.GetLogger(); serializerSettings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Objects, TypeNameAssemblyFormat = FormatterAssemblyStyle.Simple, Formatting = Formatting.Indented, Converters = { new ActorRefConverter(Context) } }; var serialization = Context.System.Serialization; serializer = serialization.FindSerializerForType(typeof(SelectedSnapshot)); connection = EventStoreConnection.Create("ConnectTo=tcp://admin:[email protected]:1113;", settings.ConnectionName); connection.ConnectAsync().Wait(); }