using System; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Http; using ARemotingNameSpace; namespace ARemotingNameSpace { public class ServerClass { public static void Main(string[] args) { ChannelServices.RegisterChannel(new HttpChannel(91)); RemotingConfiguration.ApplicationName = "Calculation"; RemotingConfiguration.RegisterActivatedServiceType(typeof(RemotingClass)); //for WellKnownObjectMode SingleCall uncomment this and comment the above //RemotingConfiguration.RegisterWellKnownServiceType( // Type.GetType("ARemotingNameSpace.ARemotingClass,ARemotingClass"), //"Calculate", WellKnownObjectMode.SingleCall); System.Console.WriteLine("Press enter key to close"); System.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.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)