public static ServiceKey CreateKeyFor(ServiceInstance container, string method)
 {
     return(ServiceKey.Create($"{container.Key}_{method}"));
 }
 protected ServiceInstance(ServiceInstance container, ServiceKey key)
 {
     Container = container;
     Key       = key;
 }
 public void AddChild(ServiceInstance child)
 {
     _children.Add(child);
 }
 public void Add(ServiceInstance instance)
 {
     _services[instance.Key] = instance;
 }