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 you debug failed assembly binds?
How are the activation URLs different in case of SAO and CAO in .NET remoting?
explain is .NET Remoting?
Hello, I want to connect a system in LAN and i want to access that.When ever i am moving a mouse in my desktop the similar thing have to happend in the another system in which i have connected. I need coding for this in c# and .NET . any one please help me.It is very urgent to me Advance thanks. my email id:manojkumarchallagundla@gmail.com
What is Remoting?
When should we choose .net remoting over .net web services?
Difference between .net remoting versus distributed com?
Give the Hierarchial description of remoting?
What are various types of assemblies ?
How do you define the lease of the object?
Explain the Flow of remoting?
What?s a proxy of the server object in .NET Remoting?