Click here to Skip to main content
15,891,749 members
Articles / Programming Languages / C#

Extensible WebService and its IE-Hosted Client

Rate me:
Please Sign up or sign in to vote.
4.97/5 (33 votes)
2 Nov 200313 min read 59.5K   615   49  
The article presents the design of a WebService consisting of a general part and add-ins to process user's requests of different types. Such architecture simplifies dedicated add-ins allowing them to share general part facilities.
using System;
using System.Diagnostics;
using System.Threading;
using System.Xml;
using Framework;
using ProcessorData;

namespace ProcessorAssembly2
{
	/// <summary>
	/// Summary description for Processor2
	/// </summary>
	public class Processor2 : Processor
	{
		public const string strGUID = "{027F83EF-F640-43ee-B5D2-E15D8B8F0A61}";
		public const string name = "Two";

		public Processor2(object data) : base(name, new Guid(strGUID))
		{
		}

		public override void Process(Data data)
		{
			// data.CommandText processing may be added here

			data.Result = "OK"; 

			//
			// Begin Test portion
			//
			Debug.WriteLine("        " + name + "  " + Convert.ToString(data.GuidType) + "  " + 
				            data.CommandID + "  " + Thread.CurrentThread.GetHashCode());
			//
			// End Test portion
			//
		}

		protected override bool Filter(XmlNode node, object data)
		{
			return true;
		}
	}
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
Israel Israel


  • Nov 2010: Code Project Contests - Windows Azure Apps - Winner
  • Feb 2011: Code Project Contests - Windows Azure Apps - Grand Prize Winner



Comments and Discussions