Castle.DynamicProxy.ModuleScope.AddCacheMappings C# (CSharp) Method

AddCacheMappings() private method

private AddCacheMappings ( AssemblyBuilder builder ) : void
builder System.Reflection.Emit.AssemblyBuilder
return void
		private void AddCacheMappings(AssemblyBuilder builder)
		{
			Dictionary<CacheKey, string> mappings;

			using (Lock.ForReading())
			{
				mappings = new Dictionary<CacheKey, string>();
				foreach (var cacheEntry in typeCache)
				{
					mappings.Add(cacheEntry.Key, cacheEntry.Value.FullName);
				}
			}

			CacheMappingsAttribute.ApplyTo(builder, mappings);
		}
#endif