Exemplo n.º 1
0
        private Type GetServiceType(Type it)
        {
            Type serviceType;

            if (RegisteredServiceMap.TryGetValue(it, out serviceType))
            {
                return(serviceType);
            }
            else
            {
                throw new Exception("Type " + it.FullName + " Not Registered");
            }
        }
Exemplo n.º 2
0
 public bool InitializeApplication()
 {
     RegisteredServiceMap.Add(typeof(IRecipeDataProvider), typeof(SimpleFileBaseRecipeDataProvider));
     return(true);
 }