예제 #1
0
 public IEnumerable <object> GetObservers(IProjectionWriterFactory factory)
 {
     yield return(new UserDetailObserver(factory.Create <UserDetailProjection>()));
 }
예제 #2
0
 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);
        }