write a example for remoting (code)
Answers were Sorted based on User's Feedback
Answer / arunkumar thimma
public class CommonClass : MarshalByRefObject
{
public string FirstName;
public string LastName;
public string GetWelcomeString()
{
Console.WriteLine("Welcome " + FirstName + " " + LastName);
return "Welcome " + FirstName + " " + LastName;
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / arunkumar thimma
static void Main(string[] args)
{
TcpChannel tcpChannel = new TcpChannel(8084);
ChannelServices.RegisterChannel(tcpChannel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ClassLibrary1.CommonClass),
"testRemoting", WellKnownObjectMode.Singleton);
Console.WriteLine("Server is ready");
Console.ReadLine();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the Difference between CAO and SAO in Remoting.
Types of compatabilities and explain them ?
What?s a Windows process?
What technology enables out-of-proc communication in .NET ?
What is unmanaged code and will CLR handle this kind of code or not ?
How to register a shared assembly ?
What are static assemblies and dynamic assemlies. Differences between them ?
What is the difference between .Net Remoting and Web Services ?
What do mean by remotable objects in .net remoting?
What are the security measures exist for .net remoting in system.runtime.remoting?
What is an assembly and what does manifest consists ?
Define remotable objects in .net remoting?