コード例 #1
0
ファイル: KeyVaultSecret.cs プロジェクト: M1kep/PSAdmin
        /// <summary>
        /// ProcessRecord
        /// </summary>
        protected override void ProcessRecord()
        {
            if (string.IsNullOrEmpty(ContentType))
            {
                ContentType = "txt";
            }
            if (string.IsNullOrEmpty(Enabled))
            {
                Enabled = "true";
            }
            string Id = Guid.NewGuid().ToString().Replace("-", "");

            KeyVaultSecretHelper.NewItemThrow(Id, VaultName, Name, Version, Enabled, Expires, NotBefore, ContentType, Tags, SecretValue);
        }