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 |
How to register a shared assembly ?
Explain how does assembly versioning in .net prevent dll hell?
What are possible implementations of distributed applications in .NET?
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?
write a example for remoting (code)
What are various types of assemblies ?
What is objref object in remoting?
Where are shared assemblies stored?
What are the differences between Marshal by value and Marshal by reference?
Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?
What are static assemblies and dynamic assemblies?