Ejemplo n.º 1
0
        public static string createBlog(BlogService.BlogServiceClient client)
        {
            var response = client.CreateBlog(new CreateBlogRequest()
            {
                Blog = new Blog.Blog()
                {
                    AuthorId = "Ali",
                    Title    = "Agah!",
                    Content  = "Welcom To Iran"
                }
            });

            return("new Blog" + response.Blog.Id + "was Created !");
        }
Ejemplo n.º 2
0
        private static void CreateBlog(BlogService.BlogServiceClient client)
        {
            var response = client.CreateBlog(new CreateBlogRequest()
            {
                Blog = new Blog.Blog
                {
                    AuthorId = "Şefik Can",
                    Content  = "Test Content",
                    Title    = "Test Title"
                }
            });

            Console.WriteLine("The blog :" + response.Blog.Id + " was created !");
        }
Ejemplo n.º 3
0
        private static Blog.Blog CreateBlog(BlogService.BlogServiceClient client)
        {
            var response = client.CreateBlog(new CreatBlogRequest()
            {
                Blog = new Blog.Blog()
                {
                    AuthorId = "Alex",
                    Title    = "New Blog",
                    Content  = "Hello new blog"
                }
            });

            Console.WriteLine($"The blog {response.Blog.Id} was created");
            return(response.Blog);
        }
Ejemplo n.º 4
0
        private static Blog.Blog CreateBlog(BlogService.BlogServiceClient client)
        {
            var response = client.CreateBlog(new CreateBlogRequest()
            {
                Blog = new Blog.Blog
                {
                    AuthorId = "Kevin",
                    Title    = "New Blog!",
                    Content  = "Hello World, this is a new blog!!"
                }
            });

            Console.WriteLine($"The Blog with id {response.Blog.Id} was created !");
            return(response.Blog);
        }
        private static Blog.Blog CreateBlog(BlogService.BlogServiceClient client)
        {
            var response = client.CreateBlog(new CreateBlogRequest()
            {
                Blog = new Blog.Blog()
                {
                    AuthorId = "Clement",
                    Title    = "New blog!",
                    Content  = "Hello world, this is a new blog"
                }
            });

            Console.WriteLine("The blog " + response.Blog.Id + " was created !");

            return(response.Blog);
        }