Skip to content

Consume IInitialData<TStore> + IConfigureStore<TOptions> generics (consume jasperfx#334) #134

@jeremydmiller

Description

@jeremydmiller

Context

JasperFx/jasperfx#334 (PR jasperfx#346) lifted IInitialData<TStore>, InitialDataCollection<TStore>, IConfigureStore<TOptions>, IAsyncConfigureStore<TOptions> to JasperFx core.

What to do

  • Re-base Polecat.IInitialData on JasperFx.IInitialData<IDocumentStore> and Polecat.InitialDataCollection on JasperFx.InitialDataCollection<IDocumentStore> (the lambda Add overload came from Polecat — preserved in the lifted type). Type-forward old names. PolecatActivator invokes Populate(...) — unchanged.
  • Re-base IConfigurePolecat on IConfigureStore<StoreOptions>. Type-forward the old name. Verify the AddPolecat() factory still binds the configure hooks.
  • Optionally add an async configure hook (IAsyncConfigureStore<StoreOptions>) if useful — the contract is now available.

Note: item 3 (resilience API shape) was NOT lifted (Polecat's defaults are an empty stub) — no action.

Acceptance

  • IInitialData + IConfigurePolecat consume the generic contracts; old names type-forwarded
  • Build + tests pass; pin bumped to the rc containing #334

Refs: jasperfx#334 / PR jasperfx#346 · pillar jasperfx#214

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions