Пример #1
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;
        }
Пример #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);
 }