Ejemplo n.º 1
0
        private object ResolveInstanceFromSingleton(MappingValue mappingValue)
        {
            var mappingKey = new MappingKey(mappingValue.TypeBase, mappingValue.InstanceName);

            if (mappingValue.Instance == null)
            {
                var mappingVal = (MappingValue)mappingValue.Clone();
                mappingVal.TypeRegister = Enum.RegisterType.Type;
                mappingValue.Instance   = ResolveInstanceFromType(mappingVal);
                _mappings[mappingKey]   = mappingValue;
            }
            return(mappingValue.Instance);
        }
Ejemplo n.º 2
0
 private object ResolveInstanceFromInstace(MappingValue mappingValue)
 {
     return(((MappingValue)mappingValue.Clone()).Instance);
 }