Class ElasticSearchProjectionRegistrar
- Namespace
- Excalibur.Data.ElasticSearch.Projections
- Assembly
- Excalibur.Data.ElasticSearch.dll
Registrar for adding multiple ElasticSearch projection stores that share
a common node URI. Used with AddElasticSearchProjections.
public sealed class ElasticSearchProjectionRegistrar
- Inheritance
-
ElasticSearchProjectionRegistrar
- Inherited Members
Remarks
Each projection type gets its own named options instance, so per-projection overrides (index prefix, shard count, etc.) are fully isolated.
Methods
Add<TProjection>(Action<ElasticSearchProjectionStoreOptions>?)
Adds a projection store for the specified type using the shared configuration.
[UnconditionalSuppressMessage("AOT", "IL2026:RequiresUnreferencedCode", Justification = "Only the configuration-bound branch binds reflectively, and the entry point that supplies the section -- AddElasticSearchProjections(IConfiguration, ...) -- carries the annotation, so a consumer has already been warned at the door they used. Annotating this method instead would warn the node-uri and action paths, which bind nothing.")]
[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "See the IL2026 justification above.")]
public ElasticSearchProjectionRegistrar Add<TProjection>(Action<ElasticSearchProjectionStoreOptions>? configureOptions = null) where TProjection : class
Parameters
configureOptionsAction<ElasticSearchProjectionStoreOptions>Optional action to override per-projection options.
Returns
- ElasticSearchProjectionRegistrar
This registrar for fluent chaining.
Type Parameters
TProjectionThe projection type to store.