public RestApiClient() { userProfileProvider = ServiceLocator.GetUserProfileProvider(); var userProfile = userProfileProvider.GetUserProfile(); if (userProfile != null) { BuildClient(userProfile.ClusterUri, userProfile.AllowInvalidServerCertificates); } }