By extracting an interface from ProjectionState and use that in UseLiquidProjections, it is possible to use the OWIN endpoint without directly coupling it to the ProjectionStats. For example, an application may want to expose cached or persisted statistics extracted from a projector, rather than getting the live data.
By extracting an interface from
ProjectionState
and use that inUseLiquidProjections
, it is possible to use the OWIN endpoint without directly coupling it to theProjectionStats
. For example, an application may want to expose cached or persisted statistics extracted from a projector, rather than getting the live data.