Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.49 KB

File metadata and controls

54 lines (35 loc) · 1.49 KB

Akka.Persistence.Hosting

Akka.Persistence Extension Method

WithJournal() Method

Used to configure a specific Akka.Persistence.Journal instance, primarily to support Event Adapters.

public static AkkaConfigurationBuilder WithJournal(
    this AkkaConfigurationBuilder builder,
    string journalId, 
    Action<AkkaPersistenceJournalBuilder> journalBuilder);

Parameters

  • journalId string

    The id of the journal. i.e. if you want to apply this adapter to the akka.persistence.journal.sql journal, just use "sql".

  • journalBuilder Action<AkkaPersistenceJournalBuilder>

    Configuration method for configuring the journal.

WithInMemoryJournal() Method

Add an in-memory journal to the ActorSystem, usually for testing purposes.

public static AkkaConfigurationBuilder WithInMemoryJournal(
    this AkkaConfigurationBuilder builder);
public static AkkaConfigurationBuilder WithInMemoryJournal(
    this AkkaConfigurationBuilder builder,
    Action<AkkaPersistenceJournalBuilder> journalBuilder);

Parameters

  • journalBuilder Action<AkkaPersistenceJournalBuilder>

    Configuration method for configuring the journal.

WithInMemorySnapshotStore() Method

Add an in-memory snapshot store to the ActorSystem, usually for testing purposes.

public static AkkaConfigurationBuilder WithInMemorySnapshotStore(
    this AkkaConfigurationBuilder builder);