Example #1
0
 private void add(Type x, DiscreteItemResolver resolver)
 {
     if (!item_resolvers.ContainsKey(x))
     {
         item_resolvers.Add(x, resolver);
     }
 }
Example #2
0
 private void safe_add(Type type, DiscreteItemResolver resolver)
 {
     if (!item_resolvers.ContainsKey(type))
     {
         item_resolvers.Add(type, resolver);
     }
 }
Example #3
0
 public SingletonResolver(DiscreteItemResolver actualResolver)
 {
     actual_resolver = actualResolver;
 }
Example #4
0
 public SingletonResolver(DiscreteItemResolver actualResolver)
 {
     actual_resolver = actualResolver;
 }
Example #5
0
 public void register(DiscreteItemResolver resolver, params Type[] contracts)
 {
     contracts.each(x => add(x, resolver));
 }
Example #6
0
 public void register(Type type, DiscreteItemResolver resolver)
 {
     safe_add(type, resolver);
 }