Esempio n. 1
0
        /// <summary> Gets the URL that resumes the current function. </summary>
        /// <remarks>
        ///   If a WXE application branches to an external web site, the external site can
        ///   link back to this URL to resume the current function at the point where
        ///   it was interrupted. Note that if the user stays on the external site longer
        ///   that the session or function timeout, resuming will fail with a timeout
        ///   exception.
        /// </remarks>
        public string GetResumeUrl(bool includeServer)
        {
            string pathPart = GetPath(_httpContext.Request.Url.AbsolutePath, FunctionToken, QueryString);

            if (includeServer)
            {
                return(UrlUtility.GetAbsoluteUrlWithProtocolAndHostname(_httpContext, pathPart));
            }
            else
            {
                return(pathPart);
            }
        }