public IEnumerable <Assembly> GetDynamicAssemblies(ISledDirectoryInfoService directoryInfoService)
        {
            var dynamicAssemblies =
                GetDynamicAssemblies(
                    directoryInfoService.PluginDirectory,
                    new[]
            {
                typeof(AtfPluginAttribute),
                typeof(SledNetworkPluginAttribute),
                typeof(SledLanguagePluginAttribute)
            });

            // Save plugin information
            m_lstPlugins.AddRange(dynamicAssemblies.Keys);

            return
                (from kv in dynamicAssemblies
                 where kv.Key.Loaded
                 select kv.Value);
        }
示例#2
0
        public IEnumerable<Assembly> GetDynamicAssemblies(ISledDirectoryInfoService directoryInfoService)
        {
            var dynamicAssemblies =
                GetDynamicAssemblies(
                    directoryInfoService.PluginDirectory,
                    new[]
                    {
                        typeof(AtfPluginAttribute),
                        typeof(SledNetworkPluginAttribute),
                        typeof(SledLanguagePluginAttribute)
                    });

            // Save plugin information
            m_lstPlugins.AddRange(dynamicAssemblies.Keys);

            return
                from kv in dynamicAssemblies
                where kv.Key.Loaded
                select kv.Value;
        }