Click here to Skip to main content
15,887,214 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.8K   1.4K   446  
An extensible dependency based plugin framework for .NET Applications.
using System;

namespace Razor.Networking
{
	/// <summary>
	/// Summary description for AddressResolutionEventArgs.
	/// </summary>
	public class AddressResolutionEventArgs
	{
		protected string _address;
		protected int _port;
		protected object _stateObject;

		public AddressResolutionEventArgs(string address, int port)
		{
			_address = address;
			_port = port;
		}

		public AddressResolutionEventArgs(string address, int port, object stateObject)
		{
			_address = address;
			_port = port;
			_stateObject = stateObject;
		}

		/// <summary>
		/// The address being resolved (one of the following, IPv4 dotted quad, IPv6 colon separated hex, or Dns name)
		/// </summary>
		public string Address
		{
			get
			{
				return _address;
			}
		}
		
		/// <summary>
		/// The port number used to during resolution
		/// </summary>
		public int Port
		{
			get
			{
				return _port;
			}
		}

		/// <summary>
		/// Returns a user defined state object that can be used to determine the context of the event
		/// </summary>
		public object StateObject
		{
			get
			{
				return _stateObject;
			}
		}
	}

	public delegate void AddressResolutionEventHandler(object sender, AddressResolutionEventArgs 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