Page 1 of 1

API Login

Posted: Wed Jan 20, 2010 2:51 pm
by DaveA
I am using the following to log in.
ServerOperations.client.LoginOptions.URL = url;
ServerOperations.client.LoginOptions.User = username;
ServerOperations.client.LoginOptions.Password = password;
ServerOperations.client.LoginOptions.Repository = repository;
ServerOperations.Login();

My question:
Is there a login that will not update the cache files.
The ServerOperations.Login() at times take up to 15+ seconds. I am assuming that that the login is also updating the CacheMember_Repository which grows very large with our database(s).
Thanks in advance.

Re: API Login

Posted: Wed Jan 20, 2010 4:49 pm
by jeremy_sg
No, there is not. We thought that a login that didn't do a refresh would not be helpful, since it would be out-of-date with regard to the server.

Would it be possible for your API app to just stay logged in?

Re: API Login

Posted: Thu Jan 21, 2010 6:51 am
by DaveA
My API runs a series of tasks that require different logins. I can see requiring the cache to be updated when running the Vault Client. But exceptions must be built in to accommodate other types of operations.

Re: API Login

Posted: Thu Jan 21, 2010 8:39 am
by jeremy_sg
It would help to get more specific information on what you're doing. Please email support at sourcegear.com ATTN: jeremy with a link to this thread.