Ejemplo n.º 1
0
        public BlogInfo[] GetUsersBlogs(string key, string username, string password)
        {
            Exception exception;
            if (!IsValidUser(username, password, out exception))
            {
                throw exception;
            }

            // FunnelWeb only has a single blog
            var homepageUri = new Uri(Context.Request.GetOriginalUrl(), "/");

            var blogInfo = new BlogInfo
            {
                blogName = funnelWebSettings.SiteTitle,
                url = homepageUri.ToString(),
                blogid = "FunnelWeb"
            };

            return new[] { blogInfo };
        }
Ejemplo n.º 2
0
        public BlogInfo[] GetUsersBlogs(string key, string username, string password)
        {
            if (ValidateUser(username, password))
            {
                // FunnelWeb only has a single blog
                var homepageUri = new Uri(Context.Request.GetOriginalUrl(), "/");

                var blogInfo = new BlogInfo
                {
                    blogName = funnelWebSettings.SiteTitle,
                    url = homepageUri.ToString(),
                    blogid = "FunnelWeb"
                };

                return new[] { blogInfo };
            }
            throw new XmlRpcFaultException(0, "User is not valid!");
        }