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

Which namespace is used for encryption ?

3 Answers   Digital GlobalSoft,


About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?

0 Answers   DELL,


Explain the differences between marshal by value and marshal by reference?

0 Answers  


Can you have two files with the same file name in GAC?

2 Answers  


Write a example code for remoting?

0 Answers  


What are various types of assemblies ?

1 Answers   TCS,


write a example for remoting (code)

2 Answers   Mind Tree,


What are the information required to configure remote objects?

0 Answers  


Define a process?

0 Answers  


What is the difference beween the registerwellknownservicetype() and registerwellknownclienttype()?

0 Answers  


What is the difference between .Net Remoting and Web Services ?

1 Answers  


Define remotable objects in .net remoting?

0 Answers  


Categories