|
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
namespace RemotingServer
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
try {
RemotingConfiguration.Configure(@"..\..\RemotingServer.exe.config");
Console.WriteLine("Display well known service types");
WellKnownServiceTypeEntry[] WellKnownServiceTypeEntries = RemotingConfiguration.GetRegisteredWellKnownServiceTypes();
foreach(WellKnownServiceTypeEntry entry in WellKnownServiceTypeEntries)
Console.WriteLine("{0}", entry);
Console.WriteLine();
Console.WriteLine("Display registerd channels");
IChannel[] Channels = ChannelServices.RegisteredChannels;
foreach(IChannel chn in Channels)
Console.WriteLine("Channel-Name='{0}'; Priority='{1}'", chn.ChannelName, chn.ChannelPriority);
} catch(Exception e) {
Console.WriteLine(e);
}
Console.WriteLine();
Console.WriteLine("Press ENTER to quit...");
Console.ReadLine();
}
}
}
|
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.
I am a consultant, trainer, software archtect/engineer, since the early 1980s, working in the greater area of Boston, MA, USA.
My work comprises the entire spectrum of software, shrink-wrapped applications, IT client-server, systems and protocol related work, compilers and operating systems, and more ....
I am currently focused on platform development for distributed computing in service oriented data centers.