Skip to content

Commit

Permalink
Fixed inspections and quick fixes registration in Castle Windsor
Browse files Browse the repository at this point in the history
  • Loading branch information
rkapka committed Mar 17, 2018
1 parent 443a039 commit b5a7c47
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Rubberduck.Main/Root/RubberduckIoCInstaller.cs
Expand Up @@ -244,8 +244,7 @@ private void RegisterQuickFixes(IWindsorContainer container, Assembly[] assembli
container.Register(Classes.FromAssembly(assembly)
.IncludeNonPublicTypes()
.Where(type => type.IsBasedOn(typeof(IQuickFix)) && type.NotDisabledExperimental(_initialSettings))
.WithService.Base()
.WithService.Self()
.WithService.Select(new[] {typeof(IQuickFix)})
.LifestyleSingleton());
}
}
Expand All @@ -257,7 +256,7 @@ private void RegisterInspections(IWindsorContainer container, Assembly[] assembl
container.Register(Classes.FromAssembly(assembly)
.IncludeNonPublicTypes()
.Where(type => type.IsBasedOn(typeof(IInspection)) && type.NotDisabledExperimental(_initialSettings))
.WithService.Base()
.WithService.Select(new[] { typeof(IInspection) })
.LifestyleTransient());
}
}
Expand All @@ -269,7 +268,6 @@ private void RegisterParseTreeInspections(IWindsorContainer container, Assembly[
container.Register(Classes.FromAssembly(assembly)
.IncludeNonPublicTypes()
.Where(type => type.IsBasedOn(typeof(IParseTreeInspection)) && type.NotDisabledExperimental(_initialSettings))
.WithService.Base()
.WithService.Select(new[] { typeof(IInspection) })
.LifestyleTransient());
}
Expand Down

0 comments on commit b5a7c47

Please sign in to comment.