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));
        }
예제 #2
0
 public object GetCreateShare(ComponentRegistration registration)
 {
     return(rootLifetimeScope.GetCreateShare(registration));
 }