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

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