Пример #1
0
 public VaultSvcAccessor(string pBaseUrl, string pSvcUserName, string pSvcPassword)
 {
     _client = new VaultSvcClient.VaultSvcClient(VAULT_SVC_ENDPOINT, pBaseUrl + @"/" + VAULT_SVC_URL_EXT);
     //why user id pwd...
     _client.ClientCredentials.UserName.UserName = pSvcUserName;
     _client.ClientCredentials.UserName.Password = pSvcPassword;
 }
Пример #2
0
        public VaultSvcAccessor()
        {
            string pBaseUrl = String.Empty;//TODO :get this from config local

            _client = new VaultSvcClient.VaultSvcClient(VAULT_SVC_ENDPOINT, pBaseUrl + @"/" + VAULT_SVC_URL_EXT);
        }
Пример #3
0
 public VaultSvcAccessor(string pBaseUrl)
 {
     _client = new VaultSvcClient.VaultSvcClient(VAULT_SVC_ENDPOINT, pBaseUrl + @"/" + VAULT_SVC_URL_EXT);
 }