Exemplo n.º 1
0
        protected override object GetInstance(Type service, string key)
        {
            object obj = key == null?_container.ResolveOptional(service) : _container.ResolveNamed(key, service);

            _logger.Info(string.Format("{0} resolved", service));
            return(obj);
        }
Exemplo n.º 2
0
 object IDependencyScope.GetService(Type serviceType)
 {
     return(container.ResolveOptional(serviceType));
 }