Beispiel #1
0
 protected void InitializeHandlers()
 {
     foreach (var handler in _mappingStrategy.GetEventHandlers(this))
     {
         RegisterHandler(handler);
     }
 }
Beispiel #2
0
 private void InitializeEventHandlers(IEventHandlerMappingStrategy eventHandlerMappingStrategy)
 {
     foreach (var eventHandler in eventHandlerMappingStrategy.GetEventHandlers(this))
     {
         AddEventHandler(eventHandler);
     }
 }