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 |
Explain what is the relationship between a Process, Application Domain, and Application?
How do you reference to a private & shared assembly ?
Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs? In what way it is best?
What are the threading types?
How can objects in two diff. App Doimains communicate with each other ?
What are the types of remotable objects?
Explain the differences between marshal by value and marshal by reference?
What are the difference between static assemblies and dynamic assemblies?
I am developing a project.Title is "Remote Demonstator".Using asp.net and C# Abstact: While administrator moving mouse and clicking on any link in the webpage that action will be performed in Server machine as well as in client machine.The client initially have to log-in and make a phone call to the admin. This is my project. How can i get this? I can create a website but this concept i have to implement in my website.How can i achive this? How to get client system control and how my mouse movings can be visible to client? I request all to please give me a basic idea or some hint. Advance Thanks.
What's the difference btw the following methods in .NET remoting? RegisterWellknownServiceType() RegisterWellknownClientType() RegisterActivatedServiceType() RegisterActivatedClientType()
What?s typical about a Windows process in regards to memory allocation?
What is objref object in remoting?