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 |
What is assembly ?
What is the Difference between CAO and SAO in Remoting.
What are the threading types?
Can you pass SOAP messages through remoting?
How to directly call a native function exported from a dll?
What are the steps to publish an object outside the service domain
Explain what is the relationship between a Process, Application Domain, and Application?
What are static assemblies and dynamic assemblies?
Explain how to perform remoting?
What is the difference between remoting and webservice?
What do you mean by windows authentication?
What do you mean by passport authentication?