Esempio n. 1
0
        /// <summary>
        /// Load assembly defined by give assembly key into application domain.
        /// </summary>
        /// <param name="assemblyKey">Key used for loading assembly.</param>
        /// <returns>AssemblyProvider.</returns>
        public AssemblyProvider LoadRoot(object assemblyKey)
        {
            var loadedAssembly = CreateOrGetAssembly(assemblyKey);

            if (loadedAssembly != null)
            {
                _manager.LoadRoot(loadedAssembly);
            }

            return(loadedAssembly);
        }