/// <summary> /// Starts a new resolution context, resolving an instance of the given <typeparamref name="TService"/> /// </summary> public ResolutionResult <TService> Get <TService>() { var resolutionContext = new ResolutionContext(_resolvers, ResolveRequested); var instance = resolutionContext.Get <TService>(); return(new ResolutionResult <TService>(instance, resolutionContext.TrackedInstances)); }
/// <summary> /// Starts a new resolution context, resolving an instance of the given <typeparamref name="TService"/> /// </summary> public TService Get <TService>() { var resolutionContext = new ResolutionContext(_resolvers, serviceType => ResolveRequested(serviceType)); return(resolutionContext.Get <TService>()); }