コード例 #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>()));
 }
コード例 #3
0
        public ProjectionNormalizer(IObserverRegistry observerRegistry, IProjectionWriterFactory projectionWriterFactory)
        {
            var observers = observerRegistry.GetObservers(projectionWriterFactory);

            _eventObservers = SetupObservers(observers);
        }