Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C#

Windows Communcation Foundation - Simple Example, Step by Step

Rate me:
Please Sign up or sign in to vote.
4.61/5 (18 votes)
20 Feb 2009CPOL4 min read 65.6K   1.2K   51  
This article demostrates a very basic example, can say simplest, of client/server design using Windows Communication Foundation(WCF)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Services.Registration
{
    public class  RegistrationService: IRegistrationService
    {
        public string RegisterName(string name)
        {
            return string.Format("Registered Name : " + name);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Australia Australia
Adil is an aspiring software craftsman. He is currently working as Senior Developer at Nintex and has extensive experience on designing and developing enterprise scale applications on Microsoft .NET Framework. Lately he is into cross platform mobile app development on Windows, Android and iOS.
Besides, day to day job, he is active in offline and online technical communities and often participates as speaker in technical events.
He blogs about his experience at http://www.AdilMughal.com

Comments and Discussions