internal static VaultSvcAccessor Instance(string pBaseUrl =null)
        {
            if (_vaultSvcAccessor == null)
            {
                if (!String.IsNullOrEmpty(pBaseUrl))
                    _vaultSvcAccessor = new VaultSvcAccessor(pBaseUrl);
                else
                    _vaultSvcAccessor = new VaultSvcAccessor();

            }
            return _vaultSvcAccessor;
        }
Exemple #2
0
 internal static VaultSvcAccessor Instance(string pBaseUrl = null)
 {
     if (_vaultSvcAccessor == null)
     {
         if (!String.IsNullOrEmpty(pBaseUrl))
         {
             _vaultSvcAccessor = new VaultSvcAccessor(pBaseUrl);
         }
         else
         {
             _vaultSvcAccessor = new VaultSvcAccessor();
         }
     }
     return(_vaultSvcAccessor);
 }