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 can objects in two diff. App Doimains communicate with each other ?
What?s SingleCall activation mode used for?
What is unmanaged code and will CLR handle this kind of code or not ?
What is an assembly and what does manifest consists ?
Name the distributed systems available apart from .net remoting?
About .NET Remoting and types of remoting ?
What is a process ?
What are possible implementations of distributed applications in .NET?
Elaborate the term WebService and how it differ from Remoting?
How does assembly versioning in .NET prevent DLL Hell?
3 Answers Satyam, Siebel Systems,
What do mean by remotable objects in .net remoting?
Define delegates and events?