public Secret GetSecretByName([FromUri] string secretName)
        {
            var manager = new SecretManager(CloudConfigurationManager.GetSetting("Auth:Storage"), Cloud.GetCoud());
            var secret = manager.GetSecret(secretName);
            if (secret == null)
            {
                return new Secret()
                {
                    Name = secretName
                };
            }

            return new Secret(secret);
        }
        private SecretManager createManager()
        {
            var reader = new AppSettingsReader();
            var setting = "Auth:Storage";

            var manager = new SecretManager(reader.GetValue(setting, setting.GetType()) as string, Cloud.GetCoud());
            return manager;
        }
 public void DeleteSecret([FromUri] string secretName)
 {
     var manager = new SecretManager(CloudConfigurationManager.GetSetting("Auth:Storage"), Cloud.GetCoud());
     manager.DeleteSecret(new Secret() {Name = secretName});
 }
 public Secret GetSecret([FromUri] string secretName, [FromUri] int? version = null)
 {
     var manager = new SecretManager(CloudConfigurationManager.GetSetting("Auth:Storage"), Cloud.GetCoud());
     return new Secret(manager.GetSecret(secretName, version));
 }
 public Secret CreateSecret([FromUri] string secretName, [FromBody] Secret secret)
 {
     var manager = new SecretManager(CloudConfigurationManager.GetSetting("Auth:Storage"), Cloud.GetCoud());
     return new Secret(manager.CreateSecret(secretName, secret));
 }