write a example for remoting (code)

Answers were Sorted based on User's Feedback



write a example for remoting (code)..

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

write a example for remoting (code)..

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

Post New Answer

More Dot Net Remoting Interview Questions

How can objects in two diff. App Doimains communicate with each other ?

1 Answers  


What?s SingleCall activation mode used for?

1 Answers  


What is unmanaged code and will CLR handle this kind of code or not ?

1 Answers   DELL,


What is an assembly and what does manifest consists ?

3 Answers   TCS,


Name the distributed systems available apart from .net remoting?

0 Answers  






About .NET Remoting and types of remoting ?

2 Answers   MMTS, SunGard,


What is a process ?

6 Answers   TCS,


What are possible implementations of distributed applications in .NET?

2 Answers  


Elaborate the term WebService and how it differ from Remoting?

0 Answers   QuestPond,


How does assembly versioning in .NET prevent DLL Hell?

3 Answers   Satyam, Siebel Systems,


What do mean by remotable objects in .net remoting?

0 Answers  


Define delegates and events?

0 Answers  


Categories