public object ResolveComponent(Service service) { if (IsDisposed) { throw new ObjectDisposedException("I am dead~"); } if (service == null) { throw new ArgumentNullException(nameof(service)); } ComponentRegistration componentRegistration = GetComponentRegistration(service); ILifetimeScope lifetimeScope = componentRegistration.Lifetime.FindLifetimeScope(this); return(lifetimeScope.GetCreateShare(componentRegistration)); }
public object GetCreateShare(ComponentRegistration registration) { return(rootLifetimeScope.GetCreateShare(registration)); }