public IEnumerable <object> GetObservers(IProjectionWriterFactory factory) { yield return(new UserDetailObserver(factory.Create <UserDetailProjection>())); }
public IEnumerable <object> GetObservers(IProjectionWriterFactory factory) { yield return(new SamplesObserver(factory.GetProjectionWriter <Guid, SampleView>())); }
public ProjectionNormalizer(IObserverRegistry observerRegistry, IProjectionWriterFactory projectionWriterFactory) { var observers = observerRegistry.GetObservers(projectionWriterFactory); _eventObservers = SetupObservers(observers); }