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

The Razor Framework :: Part 1 :: Plugins/Extensibility

Rate me:
Please Sign up or sign in to vote.
4.93/5 (127 votes)
11 Mar 2005CPOL36 min read 350.7K   1.4K   446  
An extensible dependency based plugin framework for .NET Applications.
using System;

namespace Razor.Networking.PortMaps
{
	/// <summary>
	/// EventArgs class for the PortEventHandler delegate.
	/// </summary>
	public class PortEventArgs: System.EventArgs 
	{
		private int _port = 0;

		/// <summary>
		/// Initializes a new instance of the PortEventArgs class
		/// </summary>
		/// <param name="port">A port number</param>
		public PortEventArgs(int port)
		{
			//
			// TODO: Add constructor logic here
			//
		}

		/// <summary>
		/// Gets the port number 
		/// </summary>
		public int Port
		{
			get
			{
				return _port;
			}
		}
	}

	/// <summary>
	/// Delegate for the PortEventArgs class
	/// </summary>
	public delegate void PortEventHandler(object sender, PortEventArgs e);
}

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)
United States United States
Senior Application Developer specializing in Windows desktop and network development.

Professional Experience
- B.S. of Computer Science (Graduated 2001 - PSU)
- Senior Application Developer (8+ yrs)
- Microsoft Certified Professional

Primary Interests
- C#, C++, HTML, Javascript
- XML, ASP.NET, Web Services, SOAP, UDDI
- Socket programming and anything network related
- Reflection, Serialization, and Plugin Frameworks
- Owner-drawn controls and GDI+ goodness

Comments and Discussions