Exemple #1
0
        public void removeNamedMapping <T>(NamedInjections namedInjection)
        {
            string name = namedInjection.ToString();

            if (!namedInjectionMap.ContainsKey(name))
            {
                namedInjectionMap.Add(name, new Dictionary <Type, object>());
            }
            if (namedInjectionMap[name].ContainsKey(typeof(T)))
            {
                namedInjectionMap[name].Remove(typeof(T));
            }
        }
Exemple #2
0
 public T manualGetMapping <T>(NamedInjections name) where T : class
 {
     return(namedInjectionMap[name.ToString()][typeof(T)] as T);
 }
Exemple #3
0
 public void addNamedMapping <T>(NamedInjections name, object valueToPutIn)
 {
     addNamedMapping <T>(name.ToString(), valueToPutIn);
 }