public RepositoryEventsHandlers()
 {
     RepositoryQueriedEventHandler = new DefaultQueryEventHandler();
     RepositorySavedEventHandler = new DefaultRepositorySavedHandler();
     EntityAddedEventHandler = new DefaultEntityAddedHandler();
     EntityModifiedEventHandler = new DefaultEntityModifiedHandler();
     EntityDeletedEventHandler = new DefaultEntityDeletedHandler();
 }
 public RepositoryEventsHandlers()
 {
     RepositoryQueriedEventHandler = new DefaultQueryEventHandler();
     RepositorySavedEventHandler   = new DefaultRepositorySavedHandler();
     EntityAddedEventHandler       = new DefaultEntityAddedHandler();
     EntityModifiedEventHandler    = new DefaultEntityModifiedHandler();
     EntityDeletedEventHandler     = new DefaultEntityDeletedHandler();
 }
 public CommandEventsHandlers(IRepositorySubscribe<RepositorySavedEvent> savedEvent)
 {
     Check.NotNull(savedEvent, "savedEvent");
     
     RepositorySavedEventHandler = savedEvent;
     EntityAddedEventHandler = new DefaultEntityAddedHandler();
     EntityModifiedEventHandler = new DefaultEntityModifiedHandler();
     EntityDeletedEventHandler = new DefaultEntityDeletedHandler();
 }
Exemplo n.º 4
0
        public CommandEventsHandlers(IRepositorySubscribe <RepositorySavedEvent> savedEvent)
        {
            Check.NotNull(savedEvent, "savedEvent");

            RepositorySavedEventHandler = savedEvent;
            EntityAddedEventHandler     = new DefaultEntityAddedHandler();
            EntityModifiedEventHandler  = new DefaultEntityModifiedHandler();
            EntityDeletedEventHandler   = new DefaultEntityDeletedHandler();
        }