Register IRestClient with different API URLs with Simple Injector
问题 I would like to register IRestClient with Simple Injector to inject it into a service: public class ActiveCustomersService : IActiveCustomersService { private readonly Uri apiUri = new Uri(string.Format("{0}/{1}", ApiHelper.GetUrl(), thisApiUrl)); private IRestClient _client; public ActiveCustomersService() { _client = new RestClient(apiUri); } public ActiveCustomersService(IRestClient client) { _client = client; } } However when I am trying to register it: private void