/// <summary> /// Constructor /// </summary> /// <param name="applicationEventHandlers"></param> internal ApplicationEventsResolver(IEnumerable <Type> applicationEventHandlers) : base(applicationEventHandlers) { //create the legacy resolver and only include the legacy types _legacyResolver = new LegacyStartupHandlerResolver( applicationEventHandlers.Where(x => !TypeHelper.IsTypeAssignableFrom <IApplicationEventHandler>(x))); }
/// <summary> /// Constructor /// </summary> /// <param name="logger"></param> /// <param name="applicationEventHandlers"></param> /// <param name="serviceProvider"></param> internal ApplicationEventsResolver(IServiceProvider serviceProvider, ILogger logger, IEnumerable <Type> applicationEventHandlers) : base(serviceProvider, logger, applicationEventHandlers) { //create the legacy resolver and only include the legacy types _legacyResolver = new LegacyStartupHandlerResolver( serviceProvider, logger, applicationEventHandlers.Where(x => TypeHelper.IsTypeAssignableFrom <IApplicationEventHandler>(x) == false)); }