Exemplo n.º 1
0
        /**
         * <summary>
         *   Returns the logical name of the function.
         * <para>
         * </para>
         * <para>
         * </para>
         * </summary>
         * <returns>
         *   a string corresponding to the logical name of the function
         * </returns>
         * <para>
         *   On failure, throws an exception or returns <c>YFunction.LOGICALNAME_INVALID</c>.
         * </para>
         */
        public async Task <string> get_logicalName()
        {
            string res;

            if (_cacheExpiration <= YAPIContext.GetTickCount())
            {
                if (await this.load(await _yapi.GetCacheValidity()) != YAPI.SUCCESS)
                {
                    return(LOGICALNAME_INVALID);
                }
            }
            res = _logicalName;
            return(res);
        }