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 to register a shared assembly ?

1 Answers   Digital GlobalSoft,


Explain how does assembly versioning in .net prevent dll hell?

0 Answers  


What are possible implementations of distributed applications in .NET?

2 Answers  


What is strong name and what is the purpose of strong name ?

8 Answers   Qwest, Sons Of Technology, TCS,


What are the security issues if we send a query from the application?

2 Answers   Microsoft, Timken,


write a example for remoting (code)

2 Answers   Mind Tree,


What are various types of assemblies ?

1 Answers   TCS,


What is objref object in remoting?

0 Answers  


Where are shared assemblies stored?

4 Answers  


What are the differences between Marshal by value and Marshal by reference?

4 Answers   Verizon,


Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?

2 Answers  


What are static assemblies and dynamic assemblies?

0 Answers  


Categories