Skip to content

Commit

Permalink
docs: ensure IConfigureMarten<T> is used with multiple databases per …
Browse files Browse the repository at this point in the history
…host
  • Loading branch information
AlexZeitler authored and oskardudycz committed May 13, 2023
1 parent 587c024 commit 1f35716
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/configuration/hostbuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ public static IServiceCollection AddUserModule2(this IServiceCollection services
// This applies additional configuration to the main Marten DocumentStore
// that is configured elsewhere
services.AddSingleton<IConfigureMarten, UserMartenConfiguration>();

// If you're using multiple databases per Host, register `IConfigureMarten<T>`, like this:
services.AddSingleton<IConfigureMarten<IInvoicingStore>, InvoicingStoreConfiguration>();

// Other service registrations specific to the User submodule
// within the bigger system
Expand Down

0 comments on commit 1f35716

Please sign in to comment.