Example #1
0
        /// <summary>
        /// This method creates a tag. It is idempotent
        /// </summary>
        /// <param name="tag">String of less than 40 characters and without spaces or non-ASCII characters</param>
        /// <returns><c>true</c> if the tag was created; <c>false</c> otherwise.</returns>
        /// <exception cref="ArgumentException">If the <paramref name="tag"/> is badly formatted.</exception>
        /// <exception cref="CritSendException">In case of soap error, contains the message.</exception>
        public bool CreateTag(string tag)
        {
            var result = false;

            CallWebMethod(delegate(Authentication auth)
            {
                result = _client.createTag(auth, tag);
            }, true);
            return(result);
        }