private void AddComponentType(Type contractType) { ComponentType componentType = GetComponentType(contractType); if (componentType == null) { componentType = new ComponentType(contractType); using (_componentTypes.GetWriteLock()) { _componentTypes[componentType.BaseType] = componentType; } } }
private IComponentBuilder GetDefaultComponentBuilder(ComponentType componentType) { IComponentBuilder builder; using (componentType.ComponentBuilders.GetReadLock()) { builder = componentType.ComponentBuilders.DefaultBuilder; } return builder; }