public RuntimeLoadContext(LibraryManager libraryManager, ICompilationEngine compilationEngine, IAssemblyLoadContext defaultContext) { _projectAssemblyLoader = new ProjectAssemblyLoader(loadContextAccessor: null, compilationEngine: compilationEngine, libraryManager: libraryManager); _packageAssemblyLoader = new PackageAssemblyLoader(loadContextAccessor: null, libraryManager: libraryManager); _defaultContext = defaultContext; }
public RuntimeLoadContext(string friendlyName, IEnumerable<LibraryDescription> libraries, ICompilationEngine compilationEngine, IAssemblyLoadContext defaultContext) : base(friendlyName) { // TODO: Make this all lazy // TODO: Unify this logic with default host var projects = libraries.Where(p => p.Type == LibraryTypes.Project) .OfType<ProjectDescription>(); var assemblies = PackageDependencyProvider.ResolvePackageAssemblyPaths(libraries); _projectAssemblyLoader = new ProjectAssemblyLoader(loadContextAccessor: null, compilationEngine: compilationEngine, projects: projects); _packageAssemblyLoader = new PackageAssemblyLoader(loadContextAccessor: null, assemblies: assemblies, libraryDescriptions: libraries); _defaultContext = defaultContext; }
public RuntimeLoadContext(string friendlyName, IEnumerable <LibraryDescription> libraries, ICompilationEngine compilationEngine, IAssemblyLoadContext defaultContext) : base(friendlyName) { // TODO: Make this all lazy // TODO: Unify this logic with default host var projects = libraries.Where(p => p.Type == LibraryTypes.Project) .OfType <ProjectDescription>(); var assemblies = PackageDependencyProvider.ResolvePackageAssemblyPaths(libraries); _projectAssemblyLoader = new ProjectAssemblyLoader(loadContextAccessor: null, compilationEngine: compilationEngine, projects: projects); _packageAssemblyLoader = new PackageAssemblyLoader(loadContextAccessor: null, assemblies: assemblies, libraryDescriptions: libraries); _defaultContext = defaultContext; }