Example #1
0
 private static void InjectPropertyInRepository <T>(T instance)
 {
     if (propertyDependency != null)
     {
         foreach (KeyValuePair <string, object> prop in propertyDependency)
         {
             PropertyInjector.SetValue(instance, prop.Key, prop.Value);
         }
     }
 }
Example #2
0
 private void InjectProperty(string objectId, object instance)
 {
     if (IsObjectHasProperty(objectId))
     {
         foreach (KeyValuePair <string, object> prop in GetPropertyDepedency(objectId))
         {
             PropertyInjector.SetValue(instance, prop.Key, prop.Value);
         }
     }
 }
Example #3
0
 private static void InjectPropertyInConfig <T>(string objectId, T instance,
                                                ConfigurationHandler configurationHandler)
 {
     if (configurationHandler.IsObjectHasProperty(objectId))
     {
         foreach (KeyValuePair <string, object> prop in configurationHandler
                  .GetPropertyDepedency(objectId))
         {
             PropertyInjector.SetValue(instance, prop.Key, prop.Value);
         }
     }
 }