Пример #1
0
        void ICompositionContainer <TModule> .Compose()
        {
            var assemblies = SafeAssemblyLoader.LoadAssembliesFromNames(DiscoverAssemblyNames());

            ICompositionContainer <TModule> innerContainer = new SimpleCompositionContainer <TModule>(
                assemblies,
                _compositionModuleCreationStrategy);

            innerContainer.Compose();
            Modules = innerContainer.Modules;
        }
Пример #2
0
 /// <inheritdoc />
 public IEnumerable <Assembly> Load() => SafeAssemblyLoader.LoadAssembliesFromNames(DiscoverAssemblyNames());
Пример #3
0
 private Assembly[] CreateAssemblies()
 {
     return(SafeAssemblyLoader.LoadAssembliesFromNames(DiscoverAssemblyNames()).ToArray());
 }