AddJournalStorage(ISiloBuilder, string, Func<IServiceProvider, TProvider>)
staticextension
public static ISiloBuilder AddJournalStorage<TProvider>(this ISiloBuilder builder, string name, Func<IServiceProvider, TProvider> factory) Registers a named journal storage provider and its journaled state manager factory.
Parameters
builderISiloBuilder- The silo builder.
namestring- The provider name.
factoryFunc<IServiceProvider, TProvider>- The factory which creates the singleton provider.
Returns
The silo builder.
Exceptions
System.ArgumentNullException- The builder or factory is null.
System.ArgumentException- The provider name is empty or whitespace.
System.InvalidOperationException- The name is already registered with another provider type.
