public static IScopeContext ToServiceProxy <T>(this IBindContext <T> bindContext, string baseUrl) { return(bindContext.ToConstructor(ProxyFactory.CreateProxy <T>(), s => new ServiceLocator(s).CreateRestClient <T>(baseUrl))); }
public IScopeContext ToConstructor(Func <IServiceLocator, object> creator) { ServiceFactory.CreateServiceImplementation <T>(new ServiceLocator(_resolver)); BlueprintExtensions.HasRegisteredServices = true; return(_bind.ToConstructor(s => creator(new ServiceLocator(s)))); }