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); }
object IDependencyScope.GetService(Type serviceType) { return(container.ResolveOptional(serviceType)); }