Click here to Skip to main content
15,885,875 members
Articles / Programming Languages / C#

Creating a Generic (Static and Unchanging) WCF Interface

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
11 Dec 2012CPOL10 min read 33.2K   430   33  
Learn how to create a static and unchanging WCF interface that still supports most WCF capabilities.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProtobufWcfSpike
{
	public enum TopicId : int
	{
		Address = 1,
		Person = 2,
		Other = 3
	}

	public enum MessageId : int
	{
		GetAddressFromPerson = 1,
		GetAddressFromCustomer = 2,
		GetAllAddresses = 3,
		PrintData = 4
	}
}

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
Architect
United States United States
Check out my technical blog here: The Fyslexic Duck. You can find most of what I've put on CodeProject there, plus some additional technical articles.

Comments and Discussions