public Variable Create(Type type) { var @default = _services.FindDefault(type); BuildStepPlanner planner = null; if (@default?.ImplementationType != null && @default.Lifetime != ServiceLifetime.Singleton) { planner = new BuildStepPlanner(type, @default.ImplementationType, _services, _method); } return(new ServiceCreationFrame(type, planner).Service); }
public ServiceCreationFrame(Type serviceType, BuildStepPlanner planner) { _planner = planner; Service = new ServiceVariable(serviceType, this); }