Transloadit.Assembly.AssemblyBuilder.ValidateKey C# (CSharp) Method

ValidateKey() protected method

Validates the passed key
/// Thrown when an invalid (reserved) field key is tried to be used ///
protected ValidateKey ( string key ) : void
key string Key to be validated
return void
        protected void ValidateKey(string key)
        {
            string[] invalidKeys = {"params", "signature", "template_id", "notify_url"};
            if (Array.IndexOf(invalidKeys, key) > -1)
            {
                throw new Exceptions.InvalidFieldKeyException(key);
            }
        }