示例#1
0
        public string RequestAssembly(string assembly)
        {
            if (m_knownAssemblies.Add(assembly))
            {
                if (PlatformStructure != null)
                {
                    string assemblyPath = PlatformStructure.RequestAssembly(assembly);
                    if (assemblyPath != null)
                    {
                        return(assemblyPath);
                    }
                }
                if (MixedStructure != null)
                {
                    string assemblyPath = MixedStructure.RequestAssembly(assembly);
                    if (assemblyPath != null)
                    {
                        return(assemblyPath);
                    }
                }

                Logger.Log(LogType.Warning, LogCategory.Import, $"Assembly '{assembly}' hasn't been found");
                return(null);
            }
            else
            {
                return(null);
            }
        }
示例#2
0
        public bool RequestAssembly(string assembly)
        {
            if (m_knownAssemblies.Add(assembly))
            {
                if (PlatformStructure != null)
                {
                    if (PlatformStructure.RequestAssembly(assembly))
                    {
                        return(true);
                    }
                }
                if (MixedStructure != null)
                {
                    if (MixedStructure.RequestAssembly(assembly))
                    {
                        return(true);
                    }
                }

                Logger.Instance.Log(LogType.Warning, LogCategory.Import, $"Assembly '{assembly}' hasn't been found");
                return(false);
            }
            else
            {
                return(true);
            }
        }
示例#3
0
        public string RequestAssembly(string assembly)
        {
            if (PlatformStructure != null)
            {
                string assemblyPath = PlatformStructure.RequestAssembly(assembly);
                if (assemblyPath != null)
                {
                    return(assemblyPath);
                }
            }
            if (MixedStructure != null)
            {
                string assemblyPath = MixedStructure.RequestAssembly(assembly);
                if (assemblyPath != null)
                {
                    return(assemblyPath);
                }
            }

            return(null);
        }
        public bool RequestAssembly(string assembly)
        {
            string fixedAssembly = FilenameUtils.FixAssemblyName(assembly);

            if (PlatformStructure != null)
            {
                if (PlatformStructure.RequestAssembly(assembly))
                {
                    return(true);
                }
            }
            if (MixedStructure != null)
            {
                if (MixedStructure.RequestAssembly(assembly))
                {
                    return(true);
                }
            }

            Logger.Instance.Log(LogType.Warning, LogCategory.Import, $"Assembly '{assembly}' hasn't been found");
            return(false);
        }