public bool Initialize(Uri perculusBaseUri, string apiUsername, string apiPassword) { if (Initialized) { _lastError = "Service is already initialized."; return(false); } _authHeader = new AuthHeader() { Username = apiUsername, Password = apiPassword }; PerculusBaseUri = perculusBaseUri; return(true); }
public bool Initialize(Uri perculusBaseUri, string apiUsername, string apiPassword) { if (Initialized) { _lastError = "Service is already initialized."; return false; } _authHeader = new AuthHeader() { Username = apiUsername, Password = apiPassword }; PerculusBaseUri = perculusBaseUri; return true; }