public AuthenticationService(ServiceConfigurator serviceConfigurator) { serviceConfigurator.Register(_serviceCollection); _service = _serviceCollection.BuildServiceProvider(); _client = _service.GetRequiredService <IRestClient>(); _client.BaseUrl = Config.GetBaseUrl(); }