Class ProjectionHandler
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IProjectionHandler.
public class ProjectionHandler : IProjectionHandler, IHaveReadModel
- Inheritance
-
ProjectionHandler
- Implements
- Inherited Members
- Extension Methods
Constructors
ProjectionHandler(IEventStore, ProjectionId, Type, ReadModelContainerName, EventSequenceId)
Represents an implementation of IProjectionHandler.
public ProjectionHandler(IEventStore eventStore, ProjectionId projectionId, Type readModelType, ReadModelContainerName containerName, EventSequenceId eventSequenceId)
Parameters
eventStoreIEventStoreThe event store to use.
projectionIdProjectionIdThe identifier of the projection.
readModelTypeTypeThe type of the read model.
containerNameReadModelContainerNameThe container name of the read model (collection, table, etc.).
eventSequenceIdEventSequenceIdThe event sequence identifier.
Properties
ContainerName
Gets the container name of the read model (collection, table, etc.).
public ReadModelContainerName ContainerName { get; }
Property Value
Id
Gets the identifier of the projection.
public ProjectionId Id { get; }
Property Value
ReadModelType
Gets the type of the read model.
public Type ReadModelType { get; }
Property Value
Methods
GetFailedPartitions()
Get any failed partitions for a specific reducer.
public Task<IEnumerable<FailedPartition>> GetFailedPartitions()
Returns
- Task<IEnumerable<FailedPartition>>
Collection of FailedPartition, if any.
GetState()
Get the current state of the reducer.
public Task<ProjectionState> GetState()
Returns
- Task<ProjectionState>
The current ProjectionState.