Click here to Skip to main content
11,584,288 members (62,040 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
Add your own
alternative version

Pluggable Remote Object Hosting

, 11 Nov 2003 37.8K 1.2K 35
This article presents a Pluggable mechanism for the identification and hosting of .NET Remote objects.
remoteplugins_bin.zip
PluggableRemoteObjects.dll
RemotePluggins.dll
StandardRemoteObjects.dll
RemoteHostingApp.exe
remoteplugins_src.zip
RemoteHostingApp
RemoteHostingApp.prjx
RemoteHostingApp.cmbx
PluggableRemoteObjects
PluggableRemoteObjects.prjx
PluggableRemoteObjects.cmbx
RemotePluggins
RemotePluggins.prjx
RemotePluggins.cmbx
StandardRemoteObjects
StandardRemoteObjects.prjx
StandardRemoteObjects.cmbx
using System;
using System.Runtime.Remoting;

namespace Boland.Plugin
{
	public class PluggableRemoteObjectPlugin : IRemotePlugin
	{
		public Type PluginInterface
		{
			get
			{
				return typeof(RemoteObjectPlugin);
			}
		}
		
		public string ObjectUri
		{
			get
			{
				return "Boland.RemoteObjectPlugin";
			}
		}
		
		public WellKnownObjectMode ActivationType 
		{
			get
			{
				return WellKnownObjectMode.SingleCall;
			}
		}
	}
	
	public class RemoteObjectPlugin : MarshalByRefObject, CustomInterface
	{
		public RemoteObjectPlugin()
		{
			Console.WriteLine("Remote Object Plugin Created.");
		}
		
		public void Ping()
		{
			Console.WriteLine("Pinged " + DateTime.Now.Ticks);
		}
	}
}

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

Share

About the Author

David Boland
Web Developer
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 12 Nov 2003
Article Copyright 2003 by David Boland
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid