Exemplo n.º 1
0
        protected override object GetInstance(Type service, string key)
        {
            var instance = _container.GetSafeInstance(service, key);

            if (instance != null)
            {
                return(instance);
            }
            throw new Exception("Could not locate any instances.");
        }
Exemplo n.º 2
0
 public object GetService(Type serviceType)
 {
     return(_container.GetSafeInstance(serviceType));
 }