Esempio n. 1
0
        public void AddAssembly(Assembly assembly)
        {
            if (!_assemblyCache.Exists(assembly.FullName))
            {
                _assemblyCache.Set(assembly);
            }
            else
            {
                _assemblyCache.Update(assembly);
            }

            var types = assembly.GetTypes();

            foreach (var type in types)
            {
                var fullKey = GetFullKey(type);
                _innerCache[fullKey] = assembly;
            }
        }