Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/RM-5931-Support-for-Bootstrapping-in-ServiceLocator #1037

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

MichaelKetting
Copy link
Member

@MichaelKetting MichaelKetting commented Feb 25, 2024

https://re-motion.atlassian.net/browse/RM-5931

  • DefaultServiceLocator.CreateWithBootstrappedServices() should be moved to development helpers. Production code should register defaults with BootstrapServiceConfiguration.
  • Add RegisterAssemblyFilter-API to IBootstrapServiceConfiguration for IAssemblyLoaderFilter, that allows setting AddIgnoredAssembly, ShouldConsiderAssembly, ShouldIncludeAssembly via fluent API.
  • Add RegisterSpecificRootAssemblies-API to IBootstrapServiceConfiguration for IRootAssemblyFinder that sets up SpecificRootAssemblies. Creates fixed TypeDiscoveryServiceConfiguration.SpecificRootAssemblies.CreateRootAssemblyFinder(new FilteringAssemblyLoader(new LoadAllAssemblyLoaderFilter())). Remove the related Config-parts from TypeDiscoveryServiceConfiguration (Mode and CreateTypeDiscoveryService).
  • Replace TypeDiscoveryServiceConfiguration.SpecificRootAssemblies with fluent API by extending RegisterSpecificRootAssemblies with a fluent return type.
  • Add RegisterLogging-API to IBootstrapServiceConfiguration for ILogManager, accepting the ILogManager as a parameter.
  • Get ILogManager from IBootsrapSerivceConfiguration via GetLogManager() extension method

@MichaelKetting MichaelKetting marked this pull request as draft February 25, 2024 20:43
@MichaelKetting MichaelKetting force-pushed the feature/RM-5931-Support-for-Bootstrapping-in-ServiceLocator branch 4 times, most recently from eadcd51 to fc4bad7 Compare February 26, 2024 09:40
@MichaelKetting MichaelKetting force-pushed the feature/RM-5931-Support-for-Bootstrapping-in-ServiceLocator branch from 2c93ad1 to 89329d7 Compare March 6, 2024 14:41
TypePipe uses an older implementation of PEVerify lookup. In order to reduce
development dependencies, removing this dependency from the unit tests
unlinks this dependency chain.
… to break dependency on ITypeResolutionService.

Note that since there is a dependency between type discovery configuration
and type resolution, the relevant customizations must be dropped here.
The configuration of the feature will be restored once ITypeDiscoveryService
can be resolved via IoC container.
…sts and then the removal of ContextAwareTypeUtility
@MichaelKetting MichaelKetting force-pushed the feature/RM-5931-Support-for-Bootstrapping-in-ServiceLocator branch from 89329d7 to 0d8cb2e Compare April 18, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant