示例#1
0
 public object GetInstance(Type serviceType)
 {
     return(_kernel.Get(serviceType));
 }
 protected override object GetInstance(Type service, string key)
 {
     return(string.IsNullOrWhiteSpace(key) ? Kernel.Get(service) : Kernel.Get(service, key));
 }